Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

... Repeat above for ds, dvr, fp, and hn and msm in directories located in the $OCAPROOT/ri/RI_Stack/java/src/

3. Add Exclusion patterns

  • In the "Source" tab of the "Java Build Path", double-click the <Project>/base entry, click Next in the Edit source folder window.
  • Next to the Exclusion patterns pane, click Add Multiple...
  • Browse to org/cablelabs/impl/dvb/ui, using the arrows next to the folder to descend into the child directory.
  • Control-click 
    • DVBBufferedImagePeer2.java
    • DBGraphicsImpl.java
    • DBGraphicsImpl2.java 
    to highlight them.
  • Browse to org/apache/log4j/rule, control-click to highlight "LikeRule.java". That's 4 highlighted exclusions. Click OK, Finish.
  • Back at the Source tab, double-click the <Project>/dvr entry, click Next in the Edit source folder window.
  • Next to the Exclusion patterns pane, click Add Multiple...
  • Browse to org/ocap/shared/media, control-click BeginningOfContentEvent.java and EndOfContentEvent.java, click OK, Finish.

4. Configure the project to work with the OCAP code

  • Right click on newly created project from step 1 & select "Properties'"
  • Click "Still in the project Properties window, click "Java Build Path" in the left pane of the properties form then select the "Libraries" tab
    • Remove "JRE System Library" (select and hit "Remove" button)
    • In order to compile OCAP code succesfully add the following external jar files
      • Hit "Add External JARs..." button
      • browse to & select $OCAPROOT/bin/lib/ocap-stub.jar
      • browse to & select $OCAPROOT/tools/generic/cybergarage/cybergarage.jar
      • browse to & select $OCAPROOT/tools/generic/NanoXML-2.2.3/lib/nanoxml.jar
      • browse to & select $OCAPROOT/tools/generic/java/pbp11.jar

5. Configure the compiler

  • Click "Java Compiler" in the left pane of the properties form
    • Make sure "Enable project specific settings" is checked
    • set Make sure "Compiler Use default compliance settings" is unchecked
    • set all compiler compliance levels level" to 1.4
  • Click OK button at the bottom to exit the properties form

6. Add line numbers to output

  • In the Eclipse "Window" menu, select Preferences.
  • In General->Editors->Text Editors (parent), check "Show line numbers", click OK. 

74. Configure the RI Stack to accept remote debugging connections

  • Make sure the follow entries are un-commented in $OCAPROOT/bin/$OCAPTC/env/mpeenv.ini
    • VMOPT.19=-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
    • VMOPT.20=-Xdebug

58. Create a remote JVM debug launcher configuration in eclipse

  • Click the down arrow next to the debug icon (small green bug icon, 4th from the left, along the top eclipse icon panel)
  • Select "Remote Java Application", and click the "new" icon (upper left hand side of the form ... piece of paper with + sign in upper right corner)
  • OK Keep all of the defaults
  • Leave this form

69. Launch and debug the code

...