Filebot 3.4 immediately quits in OSX 10.7.5

All your suggestions, requests and ideas for future development
Post Reply
colinlaw
Posts: 5
Joined: 14 Mar 2013, 17:05

Filebot 3.4 immediately quits in OSX 10.7.5

Post by colinlaw »

I was happily using Filebot 3.4 last week to tag TV episodes and movies. The last few days however it opens and immediately quits before showing any windows. I believe I did do a Java update in the last week.

My setup
OSX 10.7.5
Java version "1.6.0_43"
Filebot 3.4

Here is the output of the System console window...

Code: Select all

3/14/13 1:46:24.914 PM [0x0-0x30030].net.sourceforge.filebot: [LaunchRunner Error] The main class "net.sourceforge.filebot.Main" could not be found.
3/14/13 1:46:24.914 PM [0x0-0x30030].net.sourceforge.filebot: [JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
3/14/13 1:46:24.914 PM [0x0-0x30030].net.sourceforge.filebot: Exception in thread "main" 
3/14/13 1:46:24.915 PM [0x0-0x30030].net.sourceforge.filebot: java.lang.NullPointerException
3/14/13 1:46:24.915 PM [0x0-0x30030].net.sourceforge.filebot: 	at apple.launcher.LaunchRunner.run(LaunchRunner.java:113)
3/14/13 1:46:24.915 PM [0x0-0x30030].net.sourceforge.filebot: 	at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
3/14/13 1:46:24.915 PM [0x0-0x30030].net.sourceforge.filebot: 	at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
3/14/13 1:46:24.919 PM com.apple.launchd.peruser.501: ([0x0-0x30030].net.sourceforge.filebot[318]) Exited with code: 1
any ideas? I will try reinstalling Java.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot 3.4 immediately quits in OSX 10.7.5

Post by rednoah »

Try using Oracles Java 7:
http://docs.oracle.com/javase/7/docs/we ... c-jdk.html

The jar most definitely contains the startup class net.sourceforge.filebot.Main so the Java runtime must be at fault here. Otherwise make sure it doesn't get some wierd GateKeeper restrictions imposed that'll prevent it from loading the codebase.
:idea: Please read the FAQ and How to Request Help.
colinlaw
Posts: 5
Joined: 14 Mar 2013, 17:05

Re: Filebot 3.4 immediately quits in OSX 10.7.5

Post by colinlaw »

hmm, I got the 1.7.0_17-b02 build from Oracle and my System Prefs say it is now installed, but from Terminal the "java -version" command still reports
> java version "1.6.0_43"
So apparently I have 2 competing versions. Not sure how to proceed to remedy this. I miss good old Filebot.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot 3.4 immediately quits in OSX 10.7.5

Post by rednoah »

You could try the portable package. You should be able to start it via filebot.sh and by editing this shell script you could specify the absolute path to the java executable and force Java 7.
:idea: Please read the FAQ and How to Request Help.
colinlaw
Posts: 5
Joined: 14 Mar 2013, 17:05

Re: Filebot 3.4 immediately quits in OSX 10.7.5

Post by colinlaw »

looking at the portable now....is there a specific place I need to edit in the filebot.sh file? I'm not seeing where if there is. Or do I need to add a whole new line specifying a path to the java executable?

I believe my Java is installed at HD/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
colinlaw
Posts: 5
Joined: 14 Mar 2013, 17:05

Re: Filebot 3.4 immediately quits in OSX 10.7.5

Post by colinlaw »

from Terminal I got the following...

Code: Select all

colinlaw% ./filebot.sh
Exception in thread "main" java.lang.NoClassDefFoundError: net/sourceforge/filebot/Main
Caused by: java.lang.ClassNotFoundException: net.sourceforge.filebot.Main
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
It looks like a similar issue as before and I really have no clue where the Java 7 Update 17.pkg installed its stuff. Both Java installs said they completed, but I can only track down 6.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot 3.4 immediately quits in OSX 10.7.5

Post by rednoah »

Where it just calls java and having the system figure it out you can replace that with the absolute path of the java executable. I guess that'd be in ..../jre7/bin/java something..
:idea: Please read the FAQ and How to Request Help.
colinlaw
Posts: 5
Joined: 14 Mar 2013, 17:05

Re: Filebot 3.4 immediately quits in OSX 10.7.5

Post by colinlaw »

Thanks for all your help, but it looks like a no go here for some reason. I cannot locate Java 7 so it may not even have installed. I've restored Java 6 as per Apple's instructions http://support.apple.com/kb/HT5559?viewlocale=en_US and am back to Filebot failing to launch because of the class not found.

I have an older laptop that I bet Filebot will still run on. This is too time consuming to figure out as Java is a mess.
Post Reply