Quote:
Originally Posted by iSpotix
I don't have the code with me, but it seems like more of a compiling error than actual code.
|
This particular error means the classpath at runtime cannot find a class. It doesn't have anything to do with compiling. It's more to do with how you deploy to your environment.
JFrame itself is a GUI-based class that will initialize a display environment under the covers. Unrelated to robotics, a 'headless' server is one that doesn't have a video card output at all. Running a class that initializes a JFrame on a headless server throws a runtime error, though I don't remember the specifics.
If you're running the java.swing.JFrame class on the RobotRIO, then I suspect that's the source of your error. The JFrame class is meant to be launched from your driver's station laptop, and the control code should connect to the RoboRIO's IP/ports where your RoboRIO code is publishing data.