Re: undefined symbols _JNI_CreateJavaVM
Re: undefined symbols _JNI_CreateJavaVM
- Subject: Re: undefined symbols _JNI_CreateJavaVM
- From: Greg Parker <email@hidden>
- Date: Wed, 11 Jul 2007 13:41:48 -0700
There is function "JNI_CreateJavaVM" defined in the Java's
libserver.dylib (where the libjvm.dylib link to on my system).
Which should I use instead to launch JVM through my code?
Short answer: link to JavaVM.framework (`-framework JavaVM`) and call
JNI_CreateJavaVM().
See these references for important details:
Invoking the Java Virtual Machine from Native Code
http://developer.apple.com/technotes/tn2005/tn2147.html#TNTAG31
simpleJavaLauncher sample code
http://developer.apple.com/samplecode/simpleJavaLauncher/index.html
java-dev mailing list
http://lists.apple.com/mailman/listinfo/java-dev
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden