_JNI_CreateJavaVM missing
Bryce McKinlay
bmckinlay@gmail.com
Tue Aug 8 13:53:00 GMT 2006
It is installed into lib/gcj-<version>, so you'll need to add that
directory to your LD_LIBRARY_PATH or equivilent.
(It's probably not wise that this is in a versioned directory, but
unfortunately it can't go in lib, at least on linux, to avoid
conflicting with other VMs.
Bryce
On 8/8/06, Juerg Lehni <juerg@scratchdisk.com> wrote:
> I see. But this library was not installed in /usr/local/lib on my
> system. How will this be dealt with?
>
> Jürg
>
> Am 08.08.2006 um 15:19 schrieb Bryce McKinlay:
>
> > On 8/8/06, Juerg Lehni <juerg@scratchdisk.com> wrote:
> >> I compiled the lastest GCJ from SVN head today, and when linking to
> >> my application that uses JNI invocation and worked well before, I
> >> recieved a "undefined symbols" error about _JNI_CreateJavaVM and
> >> _JNI_GetDefaultJavaVMInitArgs.
> >>
> >> And indeed, these symbols seem not to be exported anymore, as this
> >> does not show any results:
> >>
> >> nm /usr/local/lib/libgcj.7.0.0.dylib | grep _JNI_CreateJavaVM
> >>
> >> Is this a mistake on my side, or did something change here in the
> >> meantime? I previously used gcc 4.1.1.
> >
> > These functions are now defined in libjvm.so. This change was made to
> > provide compatibility with JNI binaries built against other VMs.
> >
> > Bryce
More information about the Java
mailing list