You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce, do the following (instructions assume you are using Linux, but I've also gotten the same result on win32 with the appropriate changes):
git clone https://github.com/leahxschmidt/testjnaerator.git
cd testjnaerator
make
cd java
javac -cp test_linux.jar:. JavaTest.java
java -cp test_linux.jar:. -Djna.nosys=true JavaTest
I would expect this to run correctly, but it does not.
If I first extract the jar and manually configure the library path, it does run:
jar xf test_linux.jar
java -cp test_linux.jar:. -Djna.nosys=true -Djna.library.path=lib/linux_x64/ JavaTest
Naturally, I don't want to have to do that. I don't have this problem if I use 0.9.7, but I do with 0.10.0.
It seems I've introduced a regression for the JNA(erator) runtime, indeed, thanks for your report (forgot to update LibraryExtractor.java when I updated the extraction scheme for BridJ).
While I'm working on a fix, you might want to give the BridJ runtime a go, though:
From @leahxschmidt on December 27, 2012 7:40
To reproduce, do the following (instructions assume you are using Linux, but I've also gotten the same result on win32 with the appropriate changes):
git clone https://github.com/leahxschmidt/testjnaerator.git
cd testjnaerator
make
cd java
javac -cp test_linux.jar:. JavaTest.java
java -cp test_linux.jar:. -Djna.nosys=true JavaTest
I would expect this to run correctly, but it does not.
If I first extract the jar and manually configure the library path, it does run:
jar xf test_linux.jar
java -cp test_linux.jar:. -Djna.nosys=true -Djna.library.path=lib/linux_x64/ JavaTest
Naturally, I don't want to have to do that. I don't have this problem if I use 0.9.7, but I do with 0.10.0.
Copied from original issue: nativelibs4java/nativelibs4java#351
The text was updated successfully, but these errors were encountered: