Reputation: 190859
In building eclipse code, I have this "Build path specifies ..." error.
Build path specifies execution environment J2SE-1.4. There are no JREs installed in the workspace that are strictly compatible with this environment.
Googling to find this post : java build path problems to add J2SE-1.4 execution environments.
And checked Java SE 7 is installed correctly.
However, I still get the error. What might be wrong?
I have this information with java -version
in my command line.
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Upvotes: 0
Views: 3451
Reputation: 1
You can try going into Preference|Java|Installed JREs. Click on Add... button. "Add JRE" page opens and select-Standard VM. On "Add JRE" page, next to "JRE Home",click on button "Directory". Under page "Browse for folder", find Program Files-> Java and find folder with JRE version e.g if the message said JRE 1.6 missing add the folder location JRE 1.6 in it like -> C:\Prgram Files\Java\jdk1.6_30
Upvotes: 0
Reputation: 3633
You can try to go to Project|Properties
, then Choose the Java Build Path
,
chose the current JRE System Library
, and choose Remove.
Select Add Library
, and under the JRE System Library category
, select your system library;
try to choose the Workspace default JRE
Upvotes: 1