Re: undefined symbols _JNI_CreateJavaVM
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IOmrBMVLyd7kYEkKiEJh0ZyalQgxJvyN48pe13b7UPZzEJtdtGbZf9PI5hMR6UKG/6abpk545MpupK+OwPJ1jzEZbNQVsIHV49/Xdfu6Kqcr58CGVNNolcvzY/0XXMnekUnw1AqWp7ABFKg5SSUF3sQ7G3vJLJWpsM/g2kOxLWE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hNd7u75fJ/rsmJmzAWu3xenrn+x2nWnfxyJHR/Ke/CbF0EDXLzOZdRyVBVKmsFxe9AMVerjvJGnPtMOwKkxHaMuPKE4H17zlGYb1BdSBb35Y6Lu8+Pm7vCNN1tceIndNok5hZ5PoWOX8Egi4dU1f8NsO2pqI0rq0W3ocDgIChxU= Don't link to the library directly, link to the framework ( -framwork JavaVM instead of -ljavalibrary or whatever). Also, Java is not part of Darwin. Tools questions are better suited to the xcode-users mailing list. -- Finlay Hi! Shawn & all, I did link to /System/Library/Frameworks/JavaVM.framework/Libraries/libjvm.dylib (which is symbolic linked to libserver.dylib) Any further suggestion? Heidi --- Shawn Erickson <shawnce@gmail.com> wrote:
On 7/10/07, Heidi Zhou <heidi_zhou@yahoo.com> wrote:
Hello!
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?
I believe you should link against the JavaVM.framework IIRC (sorry don't have a project in front of me at the moment).
-Shawn
Heidi ~~ Life is a song of my heart. ~~ http://photos.yahoo.com/heidi_zhou ____________________________________________________________________________________ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ _______________________________________________ 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/finlay.dobbie%40gmail.com This email sent to finlay.dobbie@gmail.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... On 11/07/07, Heidi Zhou <heidi_zhou@yahoo.com> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Finlay Dobbie