Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Aug 02, 2017 15:20

Here is how to fix an issue where the JAVA VM will not initialize.

By Christopher Alton


You may encounter the following error when working with a new or existing install of Eclipse/Selenium. 

Error occured during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)

 

The first step is to ensure that you meet the requirements for running Eclipse/Selenium for the Perfecto Lab, as shown in this link here.

Setup Perfecto Lab Eclipse plug-in.

 

If you meet the requirements, and you experience the error, here are the troubleshooting steps to resolve the issue. 

Verify that your JAVA client is installed.

If the JAVA client is not installed, Eclipse will not run. Please install the required JAVA client as recommended by the setup guide

If your JAVA client is installed and the error happens again, try to reinstall your JAVA client. This should relink all the libraries needed and fix the issue.

You can also relink your JAVA path by following the steps from Oracle regarding their JAVA product.

Oracle JAVA Website - Setting or changing the JAVA path

If the JAVA client is installed and you still experience this error, the Eclipse/Selenium service itself may not identifying your JAVA client. If this is the case, use the following commands on your workstation to enable JAVA. You may need your local IT team to assist with the commands.

>> Go to c:\eclipse folder and locate eclipse.ini file

>> Open the eclipse.ini file with a text editor

>> Add the following entry into the .ini file:

 

-vm C:\Program Files\Java\jdk1.7.0_10\bin\javaw.exe

>> Save the eclipse.ini file and restart your Eclipse product.

If you are still facing a problem, please submit a support request to the Perfecto Support team.

How to open a Perfecto support case.

Note: This article can fix other JAVA related issues.