Skip to main content

Help - Unable to run JavaFX

1 reply [Last post]
shahshy
Offline
Joined: 2005-01-19

Hello there,

I am trying to execute JavaFX program from eclipse as Desktop application and it keeps failing. I have downloaded JavaFX plugin for eclipse, which seems to work fine as code is compiling without any issues. I have Java 6 SDK and JVM so don't understand why it fails to run. I keep getting following error -

<br />
Error occurred during initialization of VM<br />
java/lang/NoClassDefFoundError: java/lang/Object<br />

Could anyone point to what might be wrong and what I need to fix?

I'll appreciate any help on this.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
shahshy
Offline
Joined: 2005-01-19

I got the fix. The issue was, in my environment variable setup I has PATH variable pointing to earlier version of jdk bin directory, which was causing the issue.

I just removed that from PATH and added JDK 1.6 bin directory path to it...works fine now!