Go to Post Reading Andy Bakers post- priceless :D - thoughtful [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2015, 18:49
nfusselman1 nfusselman1 is offline
Registered User
FRC #4076
 
Join Date: Jan 2015
Location: Justin TX
Posts: 26
nfusselman1 is an unknown quantity at this point
[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
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2015, 19:00
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
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
__________________
Team 2052- KnightKrawler
Mentor and volunteer
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2015, 19:04
nfusselman1 nfusselman1 is offline
Registered User
FRC #4076
 
Join Date: Jan 2015
Location: Justin TX
Posts: 26
nfusselman1 is an unknown quantity at this point
Re: [ERROR] Deploy Code

on the second try I had done that and still got an error.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2015, 19:23
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: [ERROR] Deploy Code

Quote:
Originally Posted by nfusselman1 View Post
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2015, 19:26
nfusselman1 nfusselman1 is offline
Registered User
FRC #4076
 
Join Date: Jan 2015
Location: Justin TX
Posts: 26
nfusselman1 is an unknown quantity at this point
Re: [ERROR] Deploy Code

oh but why does the driver station say that there is no code.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-01-2015, 19:50
nfusselman1 nfusselman1 is offline
Registered User
FRC #4076
 
Join Date: Jan 2015
Location: Justin TX
Posts: 26
nfusselman1 is an unknown quantity at this point
Re: [ERROR] Deploy Code

NVM I got it to work now
Reply With Quote
  #7   Spotlight this post!  
Unread 12-01-2015, 23:22
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 112
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Re: [ERROR] Deploy Code

Quote:
Originally Posted by nfusselman1 View Post
NVM I got it to work now
Just curious what did you do to get it working in case anyone else has this problem ?
Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2015, 11:39
nfusselman1 nfusselman1 is offline
Registered User
FRC #4076
 
Join Date: Jan 2015
Location: Justin TX
Posts: 26
nfusselman1 is an unknown quantity at this point
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!!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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