Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java build path problems [duplicate]

Tags:

From someone's project, I am getting this error:

Java Build Path Problems (1 item) Build path specifies execution environment J2SE-1.5.  There are no JREs installed in the workplace that are strictly compatible with this environment.   

I have the latest JDK (jdk1.6.0_25). From my understanding, I can do one of the following:

  1. Download the J2SE-1.5 environment to match the project.
  2. Edit the project to agree with the latest JDK. How can I do this?
like image 270
O_O Avatar asked May 20 '11 21:05

O_O


People also ask

How do I change the Java build path in STS?

Go to: Preferences>Java>Build Path>Classpath Variables. Add your variable there and then in your project, you select: Build Path>Configure Build Path>Libraries.

What is Java build path?

Build path is used by the compiler to resolve dependencies and build a project. Classpath is used during runtime when running a project in order to find necessary dependencies. Build path is configured on the Java Build Path property page of a project.


1 Answers

  1. Right click on project, Properties, Java Build Path.
  2. Remove the current JRE library.
  3. Click Add library > JRE System Library > Workspace default JRE.
like image 101
Mahmoud Saleh Avatar answered Jan 03 '23 10:01

Mahmoud Saleh