Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libjvm.dylib JNI_CreateJavaVM woes



Hi,

I'm trying to port something from Linux which appears to be written in C, but using Java for its GUI through JNI.

At the link stage I am getting:

/usr/bin/gcc-3.3 -g -I/System/Library/Frameworks/JavaVM.framework/Home/include -L/System/Library/Frameworks/JavaVM.framework/Libraries -o run agent.o event.o eventBeat.o eventInduction.o eventMidi.o fft.o gui.o learn.o main.o onset.o param.o playq.o realTimeInduction.o realTimeSystem.o realTimeTracking.o sample.o sampleAdv.o sampleBeat.o sampleIO.o sfheader.o song.o spectrum.o tmf.o tree.o util.o -lstdc++ -lm -lpthread -ljvm
ld: Undefined symbols:
_JNI_CreateJavaVM
_JNI_GetDefaultJavaVMInitArgs


Looking inside libjvm I see _*_Impl versions of the functions I'm after:

$ otool -Tv /System/Library/Frameworks/JavaVM.framework/Libraries/libjvm.dylib | grep JNI
libJVM.o _JNI_CreateJavaVM_Impl
libJVM.o _JNI_GetCreatedJavaVMs_Impl
libJVM.o _JNI_GetDefaultJavaVMInitArgs_Impl
libJVM.o _JVM_IsSupportedJNIVersion


Is this some sort of name mangling issue? Can anyone please advise me on how to build this program?

Many thanks,
Hamish

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.