Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Turn of error message for wrong Java version (execution environment)
Turn of error message for wrong Java version (execution environment) [message #1063764] Fri, 14 June 2013 07:20 Go to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

If I clone org.eclipse.jdt.ui and look at the plug-ins I see a lot errors with regards to my Java version:

Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment. Build path JRE System Library Problem

I have installed Java7 and would prefer to use Java7.

If possible I would like to change this message to a warning because otherwise all the JDT plug-ins are marked as incorrect.

Is their a setting in Eclipse to set this to a warning? I went through the Error/Warning settings of the compiler in the Eclipse preference but could not find something.
Re: Turn of error message for wrong Java version (execution environment) [message #1063766 is a reply to message #1063764] Fri, 14 June 2013 07:33 Go to previous message
Manju Mathew is currently offline Manju MathewFriend
Messages: 2
Registered: June 2013
Junior Member
You need to download the appropriate Execution Environment(EE) from: http://download.eclipse.org/eclipse/updates/4.2 using Help> Install New Software.. wizard. Under 'API Tools Execution Environment Descriptions' choose the required J2SE versions.

Often we work with the latest JRE installed and that ends up on the project's Java build path but the project is defined to be working with a lower EE. JDT reports that incompatibility. API tools lets you use that latest JRE but then checks the project code against the EE descriptions.

-Manju
Previous Topic:Override default resouce rename refactor
Next Topic:Plugin - how to add package explorer to a custom perspective
Goto Forum:
  


Current Time: Tue Jan 21 06:15:34 GMT 2025

Powered by FUDForum. Page generated in 1.04136 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top