Forums Login/signup

Eclipse: troubles setting up the java 8 jdk and jre

+Pie Number of slices to send: Send
hello I'm having troubles setting up the jdk

in my system varible path I put : \;%JAVA_HOME%\bin;C:\Program Files\Java\jdk1.8.0_20\bin;

and in JAVA_HOME I have: C:\Program Files\Java\jdk1.8.0_20\bin

in cmd I did the check by typing in java -version and javac -version

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\grantb>java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
C:\Users\grantb>javac -version
javac 1.8.0_20

these are the errors I'm getting in eclipse

Description Resource Path Location Type
Build path specifies execution environment JavaSE-1.8. There are no compatible JREs installed in the workspace. Turtle Shapes Build path JRE System Library Problem
Description Resource Path Location Type

The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project Turtle Shapes Unknown Java Problem
Description Resource Path Location Type

The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files Turtle.java /Turtle Shapes/src line 1 Java Problem
So what have I done wrong here.
+Pie Number of slices to send: Send
 

Build path specifies execution environment JavaSE-1.8. There are no compatible JREs installed in the workspace.



This one is pretty easy. Go into Window -> Preferences -> Java -> Installed JREs and add the JRE for Java 1.8.

BTW, JAVA_HOME should not end with "bin".
+Pie Number of slices to send: Send
 

Knute Snortum wrote:

Build path specifies execution environment JavaSE-1.8. There are no compatible JREs installed in the workspace.



This one is pretty easy. Go into Window -> Preferences -> Java -> Installed JREs and add the JRE for Java 1.8.

BTW, JAVA_HOME should not end with "bin".



Still no go nothing has change .
1
+Pie Number of slices to send: Send
I use Luna release of Eclipse with Java 1.8.0_20.
Can you check following two things in your eclipse:

1. In Preferences, point to correct JRE.

2. In Project properties, ensure it is pointing to corresponding JRE library.

3. After all properties are set, restart Eclipse.
prefs.png
Preferences
[Thumbnail for prefs.png]
proj_prop.png
Project Properties
[Thumbnail for proj_prop.png]
1
+Pie Number of slices to send: Send
 

Omkar Shetkar wrote:I use Luna release of Eclipse with Java 1.8.0_20.
Can you check following two things in your eclipse:

1. In Preferences, point to correct JRE.

2. In Project properties, ensure it is pointing to corresponding JRE library.

3. After all properties are set, restart Eclipse.



Thank you right when I did the first part it started to work I couldn't find properties but yeah thank you.

reply
reply
This thread has been viewed 22559 times.
Similar Threads
Error: Could not find or load main class
javac won't compile
Error JRE version: Java(TM) SE Runtime Environment
Cant use java to execute files
basic problem compiling/running code
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 30, 2025 19:28:10.