Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
331 views
in Technique[技术] by (71.8m points)

java - How to change workspace JRE in 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:Javajre7injavaw.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 ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...