Re: undefined symbols _JNI_CreateJavaVM
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=5g1kDNaZEDAbrPtvlMU0Vzm4pcXTRjDYrewiFiejnj2RFfSV8w22AY6cI5zPpXPdVd8H9kUDlTB6W7isOZ79mknlCGDsgZQx6CdxAbMu7JUeaKwxqEYJYG1wX51AtpbJrf+hAsgIZhKXfp42pgnHjENwj8mgOaW38B+4iayFVu8=; Great! It works. Thank everyone for helping. Heidi --- Greg Parker <gparker@apple.com> wrote:
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 gparker@apple.com Runtime Wrangler
____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Heidi Zhou