Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

which libjvm.so should I use ?

843829Jan 22 2002 — edited Apr 15 2003
I'm trying to link libjvm.so to get an executable that calls Java virtual machine from a C++ program, and get undefined symbols as follows:

.
.
.
/usr/java/jdk1.3.1_02/jre/lib/i386/classic/libjvm.so: undefined reference to `jdk_sem_post'
/usr/java/jdk1.3.1_02/jre/lib/i386/classic/libjvm.so: undefined reference to `jdk_pthread_sigmask'
/usr/java/jdk1.3.1_02/jre/lib/i386/classic/libjvm.so: undefined reference to `jdk_sem_wait'
/usr/java/jdk1.3.1_02/jre/lib/i386/classic/libjvm.so: undefined reference to `jdk_sem_init'
collect2: ld returned 1 exit status
make: *** [usr/server/mcs-gnu/mcserver] Error 1


This programs works fine importing jvm.dll in WNT enviroment and the problem appears trying to link the excutable from RH 6.2 Linux operative system.

Could anyone help me ?

Am I using the right libjvm.so file ?

Thanks in advance, Ignasi Villagrasa.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2003
Added on Jan 22 2002
3 comments
299 views