• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse: troubles setting up the java 8 jdk and jre

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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".
 
Buda young
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 .
 
Ranch Hand
Posts: 104
2
Eclipse IDE Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
[Thumbnail for prefs.png]
Preferences
proj_prop.png
[Thumbnail for proj_prop.png]
Project Properties
 
Buda young
Greenhorn
Posts: 19
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic