How to Build#
These instructions were tested on Ubuntu Linux 12.04 64-bit with Oracle Java JDK 1.7.0_40 64-bit.
- Download and install the JDK if you don't have it already
- Download and install Ant
- Download and Install Netbeans (7.3 worked for me)
- Install the latest FRC plugins for netbeans
- Add http://frcbuilder.wpi.edu:8190/job/Java-Netbeans-Plugin/lastSuccessfulBuild/artifact/dist/updates.xml as an 'Update Center' (Tools > Plugins > Settings)
- Install all 'FRC Java' plugins (Available Plugins tab)
- Restart Netbeans when prompted
- Install the 'Ruby and Rails' plugin
- Download the plugin from http://plugins.netbeans.org/plugin/38549
- Extract the archive somewhere
- Add the extracted 'updates.xml' as an 'Update Center' just like the FRC plugins before (do not use the 'Downloaded' tab; it will not work)
- Install 'Ruby and Rails' (Available Plugins tab)
- Restart Netbeans when prompted
- Download and install Git
- Check out source code
- Clone SmartDashboard2 projects sfx, sfxlib, and sfxmeta from this TeamForge project's Source Code page somewhere
- Open the three projects in Netbeans.
- If you see a broken reference to the property 'Default_JavaFX_Platform', use the Netbeans new project wizard to create a new JavaFX application project. This will encourage Netbeans to fix itself.
- If you see a broken reference to 'jfxrt.jar', this is the JavaFX runtime jar, now bundled with Java 1.7. I found it in /usr/lib/jvm/default-java/jre/lib.
- If you see a broken reference to the property 'sunspot.home', set it to ~/sunspotfrcsdk (this should have been created when you installed the FRC plugins for Netbeans)
- It may also help to open Right-Click > 'Project Properties' > Libraries > 'Manage Platforms' on the 'sfxmeta' project; this also encourages Netbeans to fix properties errors.
- Perform a build
- Open a shell; change to the 'sfx' directory
- Run 'ant'; internet access is required.
- Ideally, this will complete without error.
- Configure Netbeans to run SmartDashboard2
- Open the 'sfx' project 'Run' page (Right-Click > Properties > Run)
- Replace the 'Ruby Options' line with -I ../gems/jrubyfx/lib -I ../gems/jrubyfx-fxmlloader/lib -I ../../sfxlib/dist -I ../../sfxmeta/dist -X+C
- Click 'OK'
- Run the SmartDashboard2 within Netbeans
- Select the 'sfx' project
- Press the green play button ('Run Project') on the toolbar
- The dashboard should start.