Reputation: 258
So before anyone tells me there are other answer to this, I have looked at them and have done all I could. I have updated the JRE AND JDK, and I still receive this error when trying to run my project I have compiled on my PC. Here is what I receive when I type in java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Also when I go to eclipse to edit the build path, and select a new library, I have NO JRE's compatibly with Java 7.0 but I explicitly downloaded the JRE 7 not 30 minutes ago!
I am lost and I need some help.
Thanks in advance!
Upvotes: 0
Views: 5384
Reputation: 29448
Perhaps you want to check Installed JREs:
Preferences > Java > Installed JREs
If the JDK7 is not in the list, you should add it by clicking Add...
button.
Add...
buttonStandard VM
in the list and click Next
buttonJRE home:
by clicking Directory...
buttonJRE name:
properly and click Finish
buttonUpvotes: 2