Any questions? Need some help?
KreAch3R
Posts: 10 Joined: 16 Apr 2014, 23:22
Post
by KreAch3R » 21 Dec 2014, 14:09
Hello,
I have a rather specific question. Which is the most correct way to use oracle Java 8 executables to launch Filebot (both from the terminal as from the launcher) in a Lubuntu 14.04 box that needs to use Openjdk java7 for multiple reasons as its default system java version?
I am guessing that I need to point to the correct java package somehow, but I would be grateful if you can tell me the correct way
rednoah
The Source
Posts: 23930 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 21 Dec 2014, 15:16
1.
See filebot.sh
2.
You can either modify filebot.sh or do update-alternatives –config java
KreAch3R
Posts: 10 Joined: 16 Apr 2014, 23:22
Post
by KreAch3R » 21 Dec 2014, 17:51
Thanks for
filebot.sh ! For any future google search that ends here, I modified filebot.sh and made it use the java 8 executable.
Code: Select all
#!/bin/bash
/usr/lib/jvm/java-8-oracle/bin/java -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=deb -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dnet.filebot.AcoustID.fpcalc=/usr/share/filebot/fpcalc -jar /usr/share/filebot/FileBot.jar "$@"
Filebot launched, so I guess calling filebot from utorrent or deluge etc. will work, too.
Important directories:
Java versions:
Filebot .sh: