Eclipse stops functioning if we update java version via notification or from else where?

After updating a java version why eclipse stops functioning or the java programs which were executing fine stop executing and on terminal when we ask for java to tell its version by java -version command in prompt it gives us the following error:

C:\Users\Dell>java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

what is the reason behind all this it means your java version have been changed and latest java updates has been installed and now you must update you system variable to get back every thing normal. Go to : properties of your computer then system properties then in system variable update the PATH by edit option and init preappend the PATH to your new jre which in my case is :

C:\Program Files\Java\jdk1.6.0_22\jre\bin

then every thing get back to normal.

Advertisements

2 thoughts on “Eclipse stops functioning if we update java version via notification or from else where?

Add yours

  1. the javac not working after update….

    C:\Documents and Settings\Administrator>javac
    ‘javac’ is not recognized as an internal or external command,
    operable program or batch file.

    1. hey tarun, for the javac command to work you will have to include the jdk/bin in you system variables Path too its C:\Program Files\Java\jdk1.6.0_22\bin in my case.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: