Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change workspace JRE in Eclipse

Tags:

java

eclipse

While creating new Java project in Eclipse I got following warning "The current workspace uses 1.4 JRE..."

I have JRE7 on my system. I have added following lines in eclipse.ini

-vm 
C:\Java\jre7\bin\javaw.exe  

I have added JRE7 to Installed JREs through Windows -> Preferences-> Installed JREs. enter image description here
Still under Compiler tab I can see only compiler compliance level till 6.
enter image description here
How can I change workspace JRE to JRE 7 ?

like image 700
Ajinkya Avatar asked Oct 22 '11 17:10

Ajinkya


1 Answers

Java 7 support is only available since Eclipse Indigo SR1 (released about a month ago). So, upgrade Eclipse.

like image 129
BalusC Avatar answered Sep 28 '22 21:09

BalusC