Using Java8 to launch Filebot besides default system java

Any questions? Need some help?
Post Reply
KreAch3R
Posts: 10
Joined: 16 Apr 2014, 23:22

Using Java8 to launch Filebot besides default system java

Post by KreAch3R »

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 :)
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Using Java8 to launch Filebot besides default system jav

Post by rednoah »

1.
See filebot.sh

2.
You can either modify filebot.sh or do update-alternatives –config java
:idea: Please read the FAQ and How to Request Help.
KreAch3R
Posts: 10
Joined: 16 Apr 2014, 23:22

Re: Using Java8 to launch Filebot besides default system jav

Post by KreAch3R »

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:

Code: Select all

/usr/lib/jvm
Filebot .sh:

Code: Select all

/usr/share/filebot/bin
Post Reply