Thursday, December 7, 2000 01:31 PM
I'm using jdk1.1.8 and native threads under Linux. Is there a way to attach a standalone C executable started by a running java application to that current instance of the java application's JVM? My first instinct is to create a library that is not re-entrant and store the JVM pointer. Recompile the C executable so it uses the library to call a function that would return the JVM. Does anyone see any pitfalls in this? Is there a better way?