Bug#858876: libjna-jni: causes NoClassDefFoundError

Markus Koschany apo at debian.org
Mon Apr 17 21:55:33 UTC 2017


Am 17.04.2017 um 21:08 schrieb Emmanuel Bourg:
> Le 17/04/2017 à 17:45, YOSHINO Yoshihito a écrit :
> 
>> I have upgraded this package, while this error still persists.
>> Exactly the same error message appears in the netbeans log.
>> Creating the symlink works around this error.
> 
> Thank you for the feedback. That's odd because the renamed path of the
> library is now hardcoded and can't be changed by a system property.
> Creating a symlink should have no effect. Could this be caused by an
> embedded jar in netbeans ?

I can confirm that I see the same error message in the messages.log
file. When I change the following line in my patch from:

System.setProperty( "jna.boot.library.name", "jnidispatch" );

to

System.setProperty( "jna.boot.library.name", "jnidispatch.system" );

the INFO warning in the log file is gone.

I'm quite sure that we don't use an embedded jar of JNA somewhere in
Netbeans. I removed everything when I repacked the tarball. I also had
to make sure to patch libs.jna/nbproject/project.properties, so that the
build system doesn't try to install those external non-existent JNA
jars, otherwise the build would have failed.

I suspect that Netbeans' System.setProperty does something differently
and not what we expect or the patch for libjna-jni was incomplete.

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20170417/bf5b082b/attachment.sig>


More information about the pkg-java-maintainers mailing list