Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Strange build error! (http://www.chiefdelphi.com/forums/showthread.php?t=138129)

thatprogrammer 09-09-2015 17:13

Strange build error!
 
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
Quote:

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

Re: Strange build error!
 
Take a look at this thread

thatprogrammer 10-09-2015 18:53

Re: Strange build error!
 
Quote:

Originally Posted by orangelight (Post 1495563)
Take a look at this thread

Even following the steps listed in that thread did not help :eek:

orangelight 10-09-2015 20:41

Re: Strange build error!
 
Quote:

Originally Posted by thatprogrammer (Post 1495667)
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

Re: Strange build error!
 
Quote:

Originally Posted by orangelight (Post 1495673)
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

Re: Strange build error!
 
Quote:

Originally Posted by thatprogrammer (Post 1495558)
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:
  1. Click the start button
  2. Then right click computer
  3. Click Properties
  4. Click Advanced System Settings
  5. Click Environment Variables
  6. If you see JAVA_HOME, go to step 11, if not, click new
  7. Variable Name = JAVA_HOME
  8. Variable Value = <Location of your Java JDK> Without the <> (Usually something like C:\Program Files\Java\jdk1.8.0_25")
  9. Click Ok
  10. Restart Eclipse and You're Done!
    ================================================== =============
  11. Click JAVA_HOME
  12. Click Edit
  13. Set variable value = <Location of your Java JDK> Without the <> (Usually something like "C:\Program Files\Java\jdk1.8.0_25")
  14. Click Ok
  15. Restart Eclipse and You're Done!


I hope I could help :)

SamcFuchs 24-09-2015 21:05

Quote:

Originally Posted by justAdev (Post 1496047)
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:
  1. Click the start button
  2. Then right click computer
  3. Click Properties
  4. Click Advanced System Settings
  5. Click Environment Variables
  6. If you see JAVA_HOME, go to step 11, if not, click new
  7. Variable Name = JAVA_HOME
  8. Variable Value = <Location of your Java JDK> Without the <> (Usually something like C:\Program Files\Java\jdk1.8.0_25")
  9. Click Ok
  10. Restart Eclipse and You're Done!
    ================================================== =============
  11. Click JAVA_HOME
  12. Click Edit
  13. Set variable value = <Location of your Java JDK> Without the <> (Usually something like "C:\Program Files\Java\jdk1.8.0_25")
  14. Click Ok
  15. 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.


All times are GMT -5. The time now is 10:21.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi