Login  Register

RE: java interface

Posted by Gilbert Peffer on Jul 10, 2001; 3:09pm
URL: http://quantlib.414.s1.nabble.com/java-interface-tp1736p1740.html

Hi Luigi
>
>Hi all,
>         news from the SWIG side: release 1.3.6 is sound and can
>be used to
>create useable Java interfaces. As soon as it is actually released, and if
>there is any interest from anyone, we could spin off a
>QuantLib-Java module
>parallel to QuantLib-Python and QuantLib-Ruby.

Yes, I am planning to use the QuantLib library to implement a course on PDEs
in Finance (ideally accessible through Internet) ...

>
>On to Gilbert's question (by the way, how do you pronounce your name? The
>english way? The french way? Some other way?):

The French way, since I'm from Luxembourg :-)

>
>At 11:59 AM 7/10/01 +0200, Gilbert Peffer wrote:
>>I was told that if you can't interface C++ from within a Java
>applet, or at
>>least that the applet won't work. Does anybody know anything about this?
>
>Well, an applet is downloaded and executed client-side in the browser
>virtual machine. The browser will not download and load a C++ shared
>library to go with the applet - besides mere reasons of portability of the
>compiled code, an applet has strong security restrictions which make it
>impossible to execute non-Java code. The VM has no means to know what the
>C++ code does (it could format your disk and such), so it does the safe
>thing and stays away from it.
>
>What you can do is to use a servlet instead, which is executed server-side
>and dynamically generates HTML to be sent to the browser. You can compile
>and install the C++ extension on the web server where the servlet
>runs, and
>it will be loaded and work its magic.

Yes, you are absolutely right about the security stuff. Sorry, I'm kind of
new to that stuff (sniff!). I'll have a look at the servlet stuff.

Thanks a lot, Gilbert