Go to Post If you're destroying game pieces left and right, you're doin' it wrong. - Ian Curtis [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 31-01-2017, 16:08
CjDace's Avatar
CjDace CjDace is offline
Skyline Samurai
AKA: Scotbot Programmers
FRC #4284 (Scotbot)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2011
Location: Cincinnati, Ohio
Posts: 13
CjDace is an unknown quantity at this point
Question Axis Camera Sample Error

I'm trying to run the Axis camera sample with a configured M1013. When I deploy the code, the build fails and I get the following message:

BUILD FAILED
C:\Users\ScotBot4284\wpilib\java\current\ant\build .xml:135: 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_121"

I've tried uninstalling the JDK and reinstalling it in the default path, but I got the same output. What can I do to get it running? Thanks!
__________________
Scotbot Programmers


"I have not failed. I have just found 10,000 ways that do not work."
~ Thomas Edison
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2017, 16:20
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 161
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: Axis Camera Sample Error

Your JAVA_HOME environment variable is incorrect. It's pointing at a JRE, not a JDK

Read this for instructions
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2017, 01:24
YairZiv's Avatar
YairZiv YairZiv is offline
Registered User
FRC #5951 (Makers Assemble)
Team Role: Programmer
 
Join Date: Oct 2016
Rookie Year: 2016
Location: Tel Aviv, Israel
Posts: 41
YairZiv is an unknown quantity at this point
Re: Axis Camera Sample Error

http://wpilib.screenstepslive.com/s/...eclipse-c-java

Follow the Setting up the JDK in eclipse part.
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:17.

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