|
Re: Porting to Java: enums, clocks, and multi-files
I can't seem to get the jar to compile into a robot sample with the add jar method.
Quote:
|
right-click on your project, select properties. From that window select the ``Java Sources Classpath'' category. You should see where the WPILIBJ JAR is already added. Click ``Add JAR/Folder...'', and find your jar.
|
I get this compile error (but no IDE errors)
Code:
init:
No to.jar.file specified.
Using "suite\RobotTemplate_1.0.0.jar"
Deleting directory C:\Documents and Settings\*\My Documents\NetBeansProjects\RobotTemplate\build
clean:
Created dir: C:\Documents and Settings\*\My Documents\NetBeansProjects\RobotTemplate\build
Compiling 1 source file to C:\Documents and Settings\*\My Documents\NetBeansProjects\RobotTemplate\build
C:\Documents and Settings\*\My Documents\NetBeansProjects\RobotTemplate\src\edu\wpi\first\wpilibj\templates\RobotTemplate.java:11: package org.thecatattack.System451.Communication.Dashboard does not exist
import org.thecatattack.System451.Communication.Dashboard.*;
C:\Documents and Settings\*\My Documents\NetBeansProjects\RobotTemplate\src\edu\wpi\first\wpilibj\templates\RobotTemplate.java:23: cannot find symbol
symbol : class ZomBDashboard
location: class edu.wpi.first.wpilibj.templates.RobotTemplate
ZomBDashboard zomB = ZomBDashboard.getInstance(ZomBModes.TCP);
^
C:\Documents and Settings\*\My Documents\NetBeansProjects\RobotTemplate\src\edu\wpi\first\wpilibj\templates\RobotTemplate.java:23: cannot find symbol
symbol : variable ZomBModes
location: class edu.wpi.first.wpilibj.templates.RobotTemplate
ZomBDashboard zomB = ZomBDashboard.getInstance(ZomBModes.TCP);
^
C:\Documents and Settings\*\My Documents\NetBeansProjects\RobotTemplate\src\edu\wpi\first\wpilibj\templates\RobotTemplate.java:23: cannot find symbol
symbol : variable ZomBDashboard
location: class edu.wpi.first.wpilibj.templates.RobotTemplate
ZomBDashboard zomB = ZomBDashboard.getInstance(ZomBModes.TCP);
^
4 errors
C:\Documents and Settings\*\sunspotfrcsdk\ant\compile.xml:48: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
|