Results 1 to 3 of 3

Thread: SUNSPOT FRC SDK - Is it Incomplete?

  1. #1
    Join Date
    Jan 2011
    Location
    Aurora, CO
    Posts
    3

    Default SUNSPOT FRC SDK - Is it Incomplete?

    I've installed the "WPILib Java update for 2011 FRC Season" from http://firstforge.wpi.edu/sf/projects/wpilib after referencing the Java Getting Started Guide for detail on this.

    After the SUNSPOT FRC SDK was installed, I had a folder "sunspotfrcsdk" within my ...\Documents and Settings\<home>\...

    I brought up NetBeans to browse the SimpleRobot and IterativeRobot classes and found that NetBeans is flagging some errors because it is unable to import the classes from the com.sun.squawk.* package(s) as well as the javax.microedition..midlet package.

    A quick look with jar tvf ...\sunspotfrcsdk\lib\WPILibJ\classes.jar showed that these packages and classes are indeed missing from the classes.jar file. Is this the right jar file and is it just incomplete? Or is there supposed to be another jar file within this directory?

  2. #2
    Join Date
    Jul 2009
    Posts
    25

    Default Re: SUNSPOT FRC SDK - Is it Incomplete?

    I'm not sure why you are seeing warnings, but the SDK is complete. The classes are stored in sunspotfrcsdk/ib/squawk_device.jar

  3. #3
    Join Date
    Jan 2011
    Location
    Aurora, CO
    Posts
    3

    Default Re: SUNSPOT FRC SDK - Is it Incomplete?

    Thanks, that fixed this problem!

    My problem was due to fact that the FRC NetBeans plugin had only added the classes.jar to the robot project's classpath, while neglecting to add the squawk_device.jar to the classpath.

    I was able to manually correct this within NetBeans with the following steps:

    1) In the Project View. right-clicking on the robot project template icon
    2) Selecting Properties at the bottom off the pull-down menu
    3) Selecting Java Sources Classpath within the Project Properties pop-up
    4) Clicking the Add JAR/File button
    5) Navigating to and selecting the squawk_device.jar file within the C:\Documents and Setting\<home>\sunspotfrcsdk\lib folder
    6) Restarting NetBeans to ensure that it
    a) picks up any FRC plugin updates from your site
    b) discovers that the squawk_device.jar file is now available for reference

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •