Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   [ERROR] Deploy Code (http://www.chiefdelphi.com/forums/showthread.php?t=132716)

nfusselman1 12-01-2015 18:49

[ERROR] Deploy Code
 
I am trying to deploy the "Intermediate Vision" Program and I am getting this error.

Buildfile: C:\Users\Developer\workspace\Intermediate Vision\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Developer\workspace\Intermediate Vision\build
compile:
[mkdir] Created dir: C:\Users\Developer\workspace\Intermediate Vision\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Developer/wpilib/java/current/lib/WPILib.jar:C:\Users\Developer/wpilib/java/current/lib/NetworkTables.jar to build

BUILD FAILED
C:\Users\Developer\wpilib\java\current\ant\build.x ml:69: 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\Java\jre1.8.0_25"

Total time: 4 seconds


I then went and changed the "JAVA_HOME" to the JDK and got this error.

Buildfile: C:\Users\Developer\workspace\Intermediate Vision\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Developer\workspace\Intermediate Vision\build
compile:
[mkdir] Created dir: C:\Users\Developer\workspace\Intermediate Vision\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Developer/wpilib/java/current/lib/WPILib.jar:C:\Users\Developer/wpilib/java/current/lib/NetworkTables.jar to build

Bryan Herbst 12-01-2015 19:00

Re: [ERROR] Deploy Code
 
It appears as though your JAVA_HOME environment variable points to a JRE (Java Runtime Environment) instead of a JDK (Java Development Kit).

First, make sure that you have a JDK (preferably JDK 8) installed.

If you do, update your computer's JAVA_HOME environment variable to point to that. The path should be something like C:\Program Files\Java\jdk1.8.0_25

nfusselman1 12-01-2015 19:04

Re: [ERROR] Deploy Code
 
on the second try I had done that and still got an error.

Joe Ross 12-01-2015 19:23

Re: [ERROR] Deploy Code
 
Quote:

Originally Posted by nfusselman1 (Post 1427018)
on the second try I had done that and still got an error.

The second try doesn't show an error message. Please post what was printed after the posted part.

nfusselman1 12-01-2015 19:26

Re: [ERROR] Deploy Code
 
oh but why does the driver station say that there is no code.

nfusselman1 12-01-2015 19:50

Re: [ERROR] Deploy Code
 
NVM I got it to work now

nickmcski 12-01-2015 23:22

Re: [ERROR] Deploy Code
 
Quote:

Originally Posted by nfusselman1 (Post 1427052)
NVM I got it to work now

Just curious what did you do to get it working in case anyone else has this problem ?

nfusselman1 13-01-2015 11:39

Re: [ERROR] Deploy Code
 
Here are the instructions.

1. click "start"
2. right click "computer"
3. click "properties"
4. click "advanced system settings"
5. click "environment variables"
6. if "JAVA_HOME" is in the system variables then go to step 12
7. else click "new"
8. "variable name" = "JAVA_HOME"
9. "variable value" = the location of your Java JDK it is close to "C:\Program Files\Java\jdk1.8.0_25"
10. click "ok"
11. your done

12. click "JAVA_HOME"
13. click "edit"
14. make sure the "variable name" = "JAVA_HOME"
15. make sure the "variable value" = the location of your Java JDK it is close to "C:\Program Files\Java\jdk1.8.0_25"
16. click "ok"
17. your done

Best of Luck!!


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

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