|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
Re: [ERROR] Deploy Code
on the second try I had done that and still got an error.
|
|
#4
|
||||||
|
||||||
|
Re: [ERROR] Deploy Code
The second try doesn't show an error message. Please post what was printed after the posted part.
|
|
#5
|
|||
|
|||
|
Re: [ERROR] Deploy Code
oh but why does the driver station say that there is no code.
|
|
#6
|
|||
|
|||
|
Re: [ERROR] Deploy Code
NVM I got it to work now
|
|
#7
|
|||
|
|||
|
Re: [ERROR] Deploy Code
Just curious what did you do to get it working in case anyone else has this problem ?
|
|
#8
|
|||
|
|||
|
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!! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|