What appears to be a different java.library.path problem

Any questions? Need some help?
Post Reply
10481
Posts: 10
Joined: 06 Nov 2014, 21:28

What appears to be a different java.library.path problem

Post by 10481 »

I've spent the last few days trying to get this running. First I had to add java 8 to get filebot to open, got that, but now every time I have filebot executed after download, I get this in the logs

Code: Select all

SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
I'm using Manjaro 3.14, I've tried multiple things to get this to work, including copying the .so file to an already included java.library.path directory and adding a .conf file with the directory, yet nothing seems to work out.

If I missed anything, just let me know.

Thanks
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: What appears to be a different java.library.path problem

Post by rednoah »

What's your platform? system info? architecture?
viewtopic.php?f=4&t=1868

On some platforms it just won't work, since the *.so binary needs to be compatible with your platform. And if it's not there's nothing you can do.

Should work on Arch though. You can check this out for references:
https://aur.archlinux.org/packages/filebot/
:idea: Please read the FAQ and How to Request Help.
10481
Posts: 10
Joined: 06 Nov 2014, 21:28

Re: What appears to be a different java.library.path problem

Post by 10481 »

Fair enough. Hopefully it works.

It's Linux 3.14.21-1-MANJARO x86_64

I'm assuming it's compatible because of the unofficial (but heavily supported) repository for the 7 zip Jbinding. I also have a message into the support forum for the OS, so I can update here as well if it gets resolved.
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: What appears to be a different java.library.path problem

Post by rednoah »

Have you tried installing FileBot via AUR?
https://wiki.manjaro.org/index.php/Arch_User_Repository
:idea: Please read the FAQ and How to Request Help.
10481
Posts: 10
Joined: 06 Nov 2014, 21:28

Re: What appears to be a different java.library.path problem

Post by 10481 »

Yes, sorry. I should have mentioned that's the version I have installed. After searching the forum, I've noticed that you get hit from every single operating system out there, so I didn't want to get too specific. But I have filebot and Jbinding from the AUR.
10481
Posts: 10
Joined: 06 Nov 2014, 21:28

Re: What appears to be a different java.library.path problem

Post by 10481 »

So far no luck. I even adjusted the build package for the 7zip binding to go into my current library path. Is it restricted to 7zip?
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: What appears to be a different java.library.path problem

Post by rednoah »

The value of java.library.path should be the path to the folder that contains the *.so libraries required by FileBot. If it doesn't work then the *.so library is not compatible with your platform. That could be due to architecture mismatch, but also due to conflicting dependencies, such as libc version mismatch, and when it says "library not found" it really means "couldn't load any library even though it may have been found".
:idea: Please read the FAQ and How to Request Help.
10481
Posts: 10
Joined: 06 Nov 2014, 21:28

Re: What appears to be a different java.library.path problem

Post by 10481 »

Oh, okay. That makes sense. Thanks.
10481
Posts: 10
Joined: 06 Nov 2014, 21:28

Re: What appears to be a different java.library.path problem

Post by 10481 »

It's finally solved, in case anyone else comes across this problem.

The java.library.path locations found by entering "java -XshowSettings:properties" do not equal the library path in question. So for me, I just had to copy the lib7-Zip-JBinding.so to my particular java version's path folder, which happens to be "/usr/lib/jvm/java-8-openjdk/jre/lib/amd64"
Post Reply