[Pljava-dev] Bug#390661: pljava on Debian AMD64: undefined symbol: JNI_CreateJavaVM during installation

Christophe Roux christophe.roux at acoeur.fr
Sat Jan 20 15:17:33 UTC 2007


Markus Schaber <schabi <at> logix-tt.com> writes:

> 
> Hi, Matthias,
> 
> Matthias Klose wrote:
> 
> >> So it should be reassigned to pljava.
> 
> Somehow, the but reassignment did not work. Matthias, can you try it?
> 
> >> However, I read the Debian Changes of libgcj, and did not find any clear
> >> mentioning of why and how that was changed.
> > 
> > these are changes pulled from gcc-4.2/classpath-0.92. JNI_CreateJavaVM
> > can be found in libjvm.
> 
> So it seems we need to change the linker flags in the Makefile, right?
> 
> > Note that it's not necessary anymore to include the precompiled jar
> > file in the library.
> 
> Personally, I see it as an advantage to have the precompiled jar
> included in the library, that eases deployment.
> 
> > Building native code using dh_nativejava and/or
> > aot-compile should be used instead.
> 
> dh_nativejava would be ugly for upstream, it will only fix the problem
> for deban users, I presume?
> 
> > Documentation pending ...
> 
> Any progress here?
> 
> Thanks,
> Markus

I read the description of the dh_nativejar command:
it can compile jar to native binary.
But what about pljava.so, using C for JNI code?
Could you tell me precisely how to modify the makefile for pljava.so 
in order to
solve this problem.
I can add the problem is not specific to amd64 but occurs also 
on Debian Etch i386:
I have the same problem with the following configuration:
uname -a
Linux acoeur-e 2.6.18-3-k7 #1 SMP Mon Dec 4 17:23:11 UTC 2006 i686 GNU/Linux

regards,
Christophe







More information about the Pljava-dev mailing list