Issue
I'm trying to set the default value for the JRE system library in Spring Tool Suite and it's setting it to 1.6 version but I need it to be 1.6.0_xx by default.
I have set the value for JAVA_HOME to be C:..\java\jdk1.6.0_xx and in the PATH variable it set to C:..\java\jdk1.6.0_xx\bin. After I configured it this way, I was able to build my maven projects successfully via the command line but when I attempt to build the Maven project from STS I get this error
Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object
Is there any workaround for this error?
Solution
- Go to
Window -> Preferences
- Once the preferences dialog appears, go to
Java -> Installed JRE
- Add your JRE, if it's not in the list, check-mark it,
Apply
,OK
Answered By - aboyko
Answer Checked By - David Marino (JavaFixing Volunteer)