View Full Version : Eclipse running. JRE installed - still get this error
mhaeberli
04-01-2015, 20:04
"unable to find a javac compiler. perhaps JAVA_HOME does not point to the JDK." ...
afiolmahon
04-01-2015, 20:30
Make sure that you have installed the Java 8 JDK and not just the JRE. If you did and still can't find it try going to eclipse -> java preferences ->installed JREs and click search and select your C drive and eclipse will find all installed runtimes and you can select the jdk1.8 from there.
RufflesRidge
04-01-2015, 20:55
Have you tried the instructions listed for that error under Troubleshooting on this page: http://wpilib.screenstepslive.com/s/4485/m/13809/l/242586-building-and-downloading-a-robot-project-to-the-roborio
afiolmahon has it right, the steps with screenshots are on this page under the heading "Setting up the JDK in eclipse (Java teams only)"
https://wpilib.screenstepslive.com/s/4485/m/13809/l/145002-installing-eclipse-c-java
The troubleshoot topic says literally nothing. I've been using eclipse with java 8 for a long time, I'm sure its configured correctly.
nickmcski
05-01-2015, 23:14
Where I highlighted the text in my screenshot, what does the text say on your computer? http://i.imgur.com/hQEro8D.png
Note jdk comes with javac, jre dosent.
afiolmahon has it right, the steps with screenshots are on this page under the heading "Setting up the JDK in eclipse (Java teams only)"
https://wpilib.screenstepslive.com/s/4485/m/13809/l/145002-installing-eclipse-c-java
This is the correct page to review for this issue. Check the section "Setting up the JDK in Eclipse". Read through it carefully as it's very easy to select the wrong folder by confusing JDK and JRE in the folder path. They want you to select the jdk path as it shows in the image (C:\Program Files (x86)\Java\jdk1.8.0_xx) even though the name says jre1.8.0_xx.
As they state "Without this setting you will see error messages about the JRE path not being set correctly."
bbaggerman
28-02-2015, 11:18
I had to manually specify the JDK in Eclipse. Go to Window -> Preferences -> Java -> Installed JREs. In my case the only line in the list was for the JRE. Click on "Add..." -> Standard VM and put in the JRE Home directory where the Java JDK resides. On my systems it is "C:\Program Files (x86)\Java\jdk1.8.0_31". Make sure the new JDK line is checked, not the JRE line.
18508
Eclipse is a mess.
Bob
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.