Quote:
Originally Posted by AMendenhall
In build.properties
Code:
robot.class=${package}.Robot
userLibs=${user.home}/navx-mxp/java/lib/navx_frc.jar
That's to include the NavX libraries. Why don't you need to do that for WPILib.jar or NetworkTables.jar? Also, there's the ${} notation.
|
WPILib.jar and NetworkTables.jar are included directly within the "WPI Build properties" (build.properties file located at C:\Users\<yourloginname>\wpilib\java\current\ant). Since this build.properties file is installed automatically by the WPI Library plugins, and since WPILib and NetworkTables are part of the WPI Library, these two libraries are handled for you. Users are not expected to edit this file.
navx_frc.jar is from a third party (Kauai Labs) and isn't included directly in the WPI Library, which is why its necessary to modify your project's "Project Build properties" (build.properties) file. The WPI Library has added a variable named userLibs to allow a third party to add libraries to the list of libraries used by your robot application. The ${userLibs} notation is what allows your "Project Build properties" to access that variable.