Page 1 of 1

java/lang/NoClassDefFoundError: java/lang/Object

Posted: 10 May 2016, 12:37
by gmilabi
Hi!
I have used FileBot for a long time with no problem.
Now all of a sudden I can't start it anymore.
I have tried to platform exe without success.
Is there any logging somewhere I can turn on?
Thanks!

Re: FileBot won't start on Windows

Posted: 10 May 2016, 12:43
by rednoah
1. Open CMD
2. Run /path/to/filebot.exe from CMD and see if there's any output

Re: FileBot won't start on Windows

Posted: 11 May 2016, 05:40
by gmilabi
Here is the message I get

Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

Re: FileBot won't start on Windows

Posted: 11 May 2016, 06:27
by rednoah
There must be something horribly wrong with your Java setup. Check if your environment variables make sense. Also, make sure you're running the latest Java 8.

Re: FileBot won't start on Windows

Posted: 11 May 2016, 09:07
by gmilabi
Variables

JAVA_HOME -> C:\Program Files\Java\jdk1.8.0_92
_JAVA_OPTIONS -> -Djava.net.preferIPv4Stack=true

The JAVA_HOME path is correct.
All other java applications are working fine.

I have uninstalled and installed again FileBot several times without any success...

Re: FileBot won't start on Windows

Posted: 11 May 2016, 13:27
by rednoah
This doesn't mean anything. Ignore.

Code: Select all

Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
This is severe. This is why it doesn't work.

Code: Select all

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
If you google for that message you'll find lots of results.

According to the first result, rt.jar (contains all Java core classes) is not in the CLASSPATH. Either a faulty install, or a bad CLASSPATH environment variable.

Reinstalling FileBot will not fix your Java issues. Reinstalling Java might. This might be a launch4j issue that you could report with the launch4j people, but most likely it's just something odd about your setup that causes things to hiccup.

EDIT:

launch4j uses the registry, so the issue might be there.

Re: java/lang/NoClassDefFoundError: java/lang/Object

Posted: 05 Jun 2016, 17:07
by ShagMiester
Hello,

I had this problem for three days, my firefox requested a JAVA update because it was outdated, I had 8 update 77 and it updated to 8 update 91 for the 64bit version and it hosed my system until I updated/installed the 32bit JAVA.

my FileBot GUI wouldn't even come up, and whenever I used the context menu commands the dos window would flash but nothing would happen.

you need to install/update both versions of JAVA if you have a 64bit system. I don't know why JAVA doesn't say that, they only mention that if you use both versions of a web browser that it needs to be done.

Hope this helps,
Shaggy