Go to Post I am speechless......but I will think of something by the time it becomes an obvious candidate for the photo caption contest. - Rich Wong [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 08-07-2015, 04:40 PM
lakecat's Avatar
lakecat lakecat is offline
Cat Expert
AKA: Tristan Thompson
FRC #2635 (Lake Monsters)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Lake Oswego, OR
Posts: 15
lakecat is an unknown quantity at this point
Eclipse Java Compile Issue

I have an iterative robot project that I split up into a number of packages. I added two extra packages underneath the usual org.usfirst.frc.team2635.robot package. Before splitting the project into packages, I was able to upload to the robot just fine. Now when I try to run, I get a long string of build errors like this:
Code:
compile:
    [mkdir] Created dir: C:\Users\localuser\Desktop\workspace\LiftBotJava\build
     [echo] [athena-compile] Compiling src with classpath=${wpilib.jar}:${networktables.jar} to build
    [javac] Compiling 26 source files to C:\Users\localuser\Desktop\workspace\LiftBotJava\build
    [javac] C:\Users\localuser\Desktop\workspace\LiftBotJava\src\org\usfirst\frc\team2635\robot\IElevationSetter.java:3: error: package edu.wpi.first.wpilibj does not exist
    [javac] import edu.wpi.first.wpilibj.SpeedController;
    [javac]                             ^
    [javac] C:\Users\localuser\Desktop\workspace\LiftBotJava\src\org\usfirst\frc\team2635\robot\IElevationSetter.java:7: error: cannot find symbol
    [javac] 	void setLiftElevation(Double setPoint, SpeedController lift1, SpeedController lift2);
    [javac] 	                                       ^
    [javac]   symbol:   class SpeedController
    [javac]   location: interface IElevationSetter
    [javac] C:\Users\localuser\Desktop\workspace\LiftBotJava\src\org\usfirst\frc\team2635\robot\IElevationSetter.java:7: error: cannot find symbol
    [javac] 	void setLiftElevation(Double setPoint, SpeedController lift1, SpeedController lift2);
    [javac] 	                                                              ^
    [javac]   symbol:   class SpeedController
    [javac]   location: interface IElevationSetter
And so on for 100 errors. Has anyone else had this problem?
Reply With Quote
  #2   Spotlight this post!  
Unread 08-11-2015, 11:25 AM
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,547
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: Eclipse Java Compile Issue

It would help if you posted your project.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-11-2015, 06:45 PM
krieck's Avatar
krieck krieck is offline
Registered User
AKA: Keith
FRC #2846 (Firebears)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Minnesota
Posts: 49
krieck is an unknown quantity at this point
Re: Eclipse Java Compile Issue

Your build is having trouble finding the WPILIB library files, which should be "wpilib" directory in your home directory.

The third line of your log (the one describing the classpath) is a little weird, like it knows which two JAR files to load, but doesn't know where they are. This line should usually be an explicit pair of file paths.

You could try diagnosing the build.xml and build.properties files (there are some in your project directory and others under the wpilib directory). Or, you could just try trashing your wpilib directory and then reloading the FRC plugins.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-12-2015, 04:12 PM
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Eclipse Java Compile Issue

I'm guessing you have imported an existing project into eclipse.

Try creating a new FRC Java robot project, compiling the new project and compiling this one again.

It can't find the wpilib jars because it thinks your classpath is "${wpilib.jar}". This should automatically get replaced by the actual classpath by whatever ant reads from the build.properties file. This doesn't get set up properly until you've created a new project.
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 08:39 AM.

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