Menu

Creating_a_Netbeans_Project

The code is split up into three separate parts:

  • WPILibJ: The original WPILibJ, with pieces taken out as they are replaced with updated files in the library.
  • Library: Replacements for files in WPILibJ.
  • Client: The GUI client and example code.

All three parts must be put into one NetBeans project.

  1. In NetBeans, go to File > New Project.
  2. Select Java > Java Project with Existing Sources, and click Next
  3. Give the project a name and location, then click Finish.
  4. In a terminal, cd to the project folder you have created, then enter the following commands: (Note: this will check the project out from the read-only SVN.)
    svn checkout svn://svn.code.sf.net/p/frcsimulator/client/trunk client
    svn checkout svn://svn.code.sf.net/p/frcsimulator/library/trunk library
    svn checkout svn://svn.code.sf.net/p/frcsimulator/wpilibj/trunk wpilibj
  5. Right-click the project in NetBeans, and choose Properties.
  6. Select Sources from the list on the left, then click Add Folder... next to Source Package Folders.
  7. Control-click and select the client, library, and wpilibj folders, then click OK.
  8. Click OK again.

When you first run the project, you will be asked to choose a main class. Select net.sourceforge.frcsimulator.Client (it should be the only one) and click OK.


Auth0 Logo