Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

share|improve this question
Possible duplicate? I understand that this question came first but my question has an answer that works. – umop aplsdn Aug 28 '12 at 4:34

You have to edit your eclipse.ini file and have to specify your jvm path at there. Read this link It will help you.

share|improve this answer
Hm. Not working with:… – 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). – ankurtr 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

In case you did not already try this:

when you open a project you need to set the environment.

If the environment was already set as 1.6 previously, then you will need to make a new project with the execution environment as 1.7 and import it.

eclipse environment

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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