View Full Version : Strange build error!
thatprogrammer
09-09-2015, 17:13
Hello All,
I am having a strange error when building robot files (any other programs seem to work).
This is the error message I receive BUILD FAILED
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files (x86)\Java\jre1.8.0_51"
Note that I am using the run as deploy button to build the code, despite not being connected to a robot.
Anyone have an idea what's going on?
Thanks!
orangelight
09-09-2015, 20:11
Take a look at this thread (http://www.chiefdelphi.com/forums/showthread.php?t=132716)
thatprogrammer
10-09-2015, 18:53
Take a look at this thread (http://www.chiefdelphi.com/forums/showthread.php?t=132716)
Even following the steps listed in that thread did not help :eek:
orangelight
10-09-2015, 20:41
Even following the steps listed in that thread did not help :eek:
Does it still give you the same error?
thatprogrammer
10-09-2015, 21:03
Does it still give you the same error?
Actually, this is really strange. I just updated windows, and it now works. Wonder if Windows 10 was just not playing nice with eclipse...
justAdev
15-09-2015, 01:31
Hello All,
I am having a strange error when building robot files (any other programs seem to work).
This is the error message I receive
Note that I am using the run as deploy button to build the code, despite not being connected to a robot.
Anyone have an idea what's going on?
Thanks!
I've ran into this problem many times and luckily I knew how to fix it every time it popped up :P
First make sure you have Java installed.
If you're sure you have it installed, assuming you're using windows, follow these steps:
Click the start button
Then right click computer
Click Properties
Click Advanced System Settings
Click Environment Variables
If you see JAVA_HOME, go to step 11, if not, click new
Variable Name = JAVA_HOME
Variable Value = <Location of your Java JDK> Without the <> (Usually something like C:\Program Files\Java\jdk1.8.0_25")
Click Ok
Restart Eclipse and You're Done!
================================================== =============
Click JAVA_HOME
Click Edit
Set variable value = <Location of your Java JDK> Without the <> (Usually something like "C:\Program Files\Java\jdk1.8.0_25")
Click Ok
Restart Eclipse and You're Done!
I hope I could help :)
SamcFuchs
24-09-2015, 21:05
I've ran into this problem many times and luckily I knew how to fix it every time it popped up :P
First make sure you have Java installed.
If you're sure you have it installed, assuming you're using windows, follow these steps:
Click the start button
Then right click computer
Click Properties
Click Advanced System Settings
Click Environment Variables
If you see JAVA_HOME, go to step 11, if not, click new
Variable Name = JAVA_HOME
Variable Value = <Location of your Java JDK> Without the <> (Usually something like C:\Program Files\Java\jdk1.8.0_25")
Click Ok
Restart Eclipse and You're Done!
================================================== =============
Click JAVA_HOME
Click Edit
Set variable value = <Location of your Java JDK> Without the <> (Usually something like "C:\Program Files\Java\jdk1.8.0_25")
Click Ok
Restart Eclipse and You're Done!
I hope I could help :)
This is what worked for me way back when I had that problem iirc. Also, I don't think it's win10. I've got win10 and no problems.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.