Java Beta

It's always a good idea to check for updates first!
Get Started!: {This tutorial is for those without a classmate}

http://first.wpi.edu/FRC/frcjava.html

Simple Getting started:

  1. Download and install :
    1. Netbeans. http://netbeans.org/downloads/index.html (Get the JavaSE version)
    2. SunSpot https://www.sunspotworld.com/GettingStarted/index.html (You need to pick your OS from the list.)
    3. NI cRio Image Patch http://first.wpi.edu/Images/CMS/First/NIBetaUpdate5.0.zip (WINDOWS ONLY!)
  2. Configuring Netbeans
    1. Open Netbeans
    2. We need the WPIlibj, go to: Tools > Plugins > Downloaded > Add Plugins
      1. (on mac) You have 2 options, download the listed plugins, try to find them on your computer
        1. You need to find:
          1. edu-wpi-first-squawk.nbm
          2. edu-wpi-first-templates.nbm
          3. org-sunspotworld-SPOTFRCwelcomemodule.nbm.zip
          4. org-sunspotworld-renamerefactoring.nbm.zip
          5. org-sunspotworld-sunspotfrcapplicationtemplate.nbm.zip
        2. Or download them here : http://first.wpi.edu/FRC/java/netbeans/update/
      2. (on pc) They should have been insalled to C:/FRCJava/
    1. Setting your team number (for example 2648)
      1. (on mac) Netbeans > Preferences > Miscellaneous > FRC Configuration > 2648
      2. (on pc) Tools > options > Miscellaneous > FRC Configuration > 2648
    1. Netbeans includes the capability to auto update the plugins detailed go to:  Tools > Plugins > Settings
      1. Select the add button, in the name box type FRC Java
      2. This url needs to be entered in the URL box: http://first.wpi.edu/FRC/java/netbeans/update/updates.xml [I set mine to check for updates on startup]
  3. Imaging the cRio
    1. Now its time to image your cRio, We had a lot of trouble when imaging our cRio... I would recommend that you use your (Orange) ethernet crossover cable... It took is 19 consecutive tries, restarting the cRio after each failure. Our error were like: Tcp/Ip vi... vi... vi.. failed, Unexpected error 56... SOmetimes it would go on for hours, We only got a "Timeout" once
    2. If you ever get it to successfully format with java technology WOOT for you!!!!

Now you can reference the java reference guide here: http://first.wpi.edu/Images/CMS/First/GettingStartedWithJava.pdf

View the Javadoc(API) here:
http://team2648.com/javadoc/index.html

View a sample robot program here....
http://team2648.com/resources/java/sample-robot-code