Lab-5538: The Real-Time Java™ Platform Programming Challenge: Taming Timing Troubles

Expected Duration: 120 minutes
Begin Product Tab Sub Links

Exercise 0: Install and Configure Lab Environment

 
  1. Install Sun Java™ Real-Time System
    • Follow the instructions provided in the download of Sun Java RTS to install it:
      • On Solaris OS you need to install both the JVM (package SUNWrtjv) and the Cyclic Driver (package SUNWrtjc).
      • On Linux you can untar the installation bundle wherever you like.
    • Ensure you configure the necessary execution permissions for your user account (as per the installation instructions) and logout and back in again so that those new permissions take affect.
  2. Test the installation of Sun Java RTS:
    • Open a terminal window and enter: <INSTALL_DIR>/bin/java -version
    • The output should look similar to the following:
      # ~/realtimejava > /opt/SUNWrtjv/bin/java -version
      java version "1.5.0_16"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16_Java-RTS-2.2-b08_RTSJ-1.0.2)
      Java Real-Time System HotSpot(TM) Client VM (build 1.5.0_16-b08, mixed mode)
      
  3. Install JDK™ 6 (for use by Netbeans™)
    • Follow the instructions provided with the JDK™ download
  4. Install the Netbeans™ 6 IDE
    • Follow the instructions provided with the Netbeans download
  5. Start the Netbeans IDE and check the IDE comes up.
  6. Add Sun Java RTS as a new "Java Platform" within the Netbeans IDE as follows:
    1. From the menu select Tools then Java Platforms
    2. Click Add Platform ... to start the "Add Platform" wizard
    3. In step 1 of the wizard choose the platform folder for where Sun Java RTS is installed e.g. /opt/SUNWrtjv, then click next
    4. In step 2 of the wizard:
      • Set the name of the platform to Sun Java Real-Time System. (This is the name expected by the project files.)
      • Set the path for the Platform JavaDoc to the installed javadoc location e.g. /opt/SUNWrtjv/doc/rtsj-docs/
    5. Click Finish
  7. Install the Java RTS Netbeans Module as follows:
    1. From the Netbeans menu select Tools then Plugins
    2. Click the Downloaded tab, then click the Add Plugins... button
    3. Navigate to your downloaded Sun Java RTS Netbeans module file, select it and click open. The Sun Java RTS Netbeans module is now listed in the set of downloaded modules. Click the tick-box next to the module and then click the install button. Follow the prompts to complete the installation.
     

    Back to top
    Next exercise