I've got Oracle JDK 7 installed javac -version yields

javac 1.7.0

and the JRE is installed and enabled in Eclipse > Preferences > Installed JREs (As location: /usr/lib/jvm/jdk1.7.0)

But trying to change Preferences > Compiler > Compiler Compliance Level shows no options above 1.6.0

I'm a novice to ubuntu... Does anyone have any ideas what I've got wrong? I followed the instructions from How do I install Oracle Java JDK 7?

Screenshot of eclipse.ini and /usr/lib/jvm/jdk1.7.0:

http://dl.dropbox.com/u/10919879/Screenshot.png

link|improve this question
feedback

1 Answer

You have to edit your eclipse.ini file and have to specify your jvm path at there. Read this link http://wiki.eclipse.org/Eclipse.ini. It will help you.

link|improve this answer
Hm. Not working with: dl.dropbox.com/u/10919879/… – Matt G Dec 18 '11 at 1:08
The path should be upto bin directory only. you have ended path with java. just write path upto bin only(including bin). – ankur.trapasiya Dec 18 '11 at 12:43
Bugger. I think I'll just use netbeans. Persists after changing to -vm /usr/lib/jvm/jdk1.7.0/bin/ – Matt G Dec 18 '11 at 17:15
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.