Re: undefined symbols _JNI_CreateJavaVM
Re: undefined symbols _JNI_CreateJavaVM
- Subject: Re: undefined symbols _JNI_CreateJavaVM
- From: Heidi Zhou <email@hidden>
- Date: Wed, 11 Jul 2007 18:15:45 -0700 (PDT)
Great!
It works.
Thank everyone for helping.
Heidi
--- Greg Parker <email@hidden> 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 email@hidden 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden