Im running Eclipse Juno on Mac OSX 10.8.4, I tried to upgrade my jdk to 1.7 when I run a Java application, and I have this error:
Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/invoke/MethodHandle
if i run terminal
java -version
I get it
java version "1.7.0_40" Java(TM) SE Runtime Environment (build 1.7.0_40-b43) Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
to update this option installed on Eclipse
Window - Settings - Java - Installed JRE - Duplicate
JRE home: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home JRE name: Java SE 7 (MacOS X Default)
also changed the compiler level
Window - Preferences - Java - Compiler - Compiler compilance level: 1.7
The following lines have also been added to /Users/myUser/.bash_profile:
VA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home export JAVA_HOME=$VA_HOME export CLASSPATH=$VA_HOME export PATH=$PATH:$JAVA_HOME/bin
but still getting the same error
Any help I would appreciate
source share