The Invocation APIThe Invocation API allows a Java VM to be created inside a native process. (Note that only one JVM can be created in a single process.) [Details]
In order to build a program which uses the Invocation API using Cygwin tools, we need to create a Cygwin-style
library against which our program can link. Our program will then load
We can create a Java VM by invoking a function in Continue (i.e., skip the footnotes) Esoterica* This limitation is listed as RFE #4525299 on Sun's Java Developer Connection. There's a comment from a Sun engineer on why this limitation exists under closed bug #4479303.) If you need, or think you need, multiple JVMs for your native application, you might keep an eye on JSR-121, which will create the Java Application Isolation API. JSR-121 is in the JCP Public Review stage (as I write this December 25, 2002), and you can submit comments about it through the JCP if you are sufficiently motivated. This API allows multiple applications to run within a single JVM while remaining otherwise, um, isolated. (These "isolates" might also be implemented as heavyweight processes, and in fact are implemented that way in the reference implementation.) |