After building the RI Quick Start, follow these steps to get the Circles Xlet running:
- The quickest way to "pre-configure" the RI is to run the tune test Tune Test Instructions. This insures that the various configuration files/settings are correct for running an Xlet from the filesystem.
- Running the Tune Test should create the $OCAPROOT/bin/$OCAPTC/env/final.properties file. Alternately, manually create or edit the final.properties file and set OCAP.xait.ignore=true.
- Retrieve the Circles Xlet class file from https://community.cablelabs.com/svn/OCAPRI/trunk/packaging/package_support/CirclesXlet.class. The java source file is in the same directory.
- Create the destination directory:
mkdir -p $OCAPROOT/bin/CableLabs/simulator/Win32/debug/env/qa/xlet/com/cablelabs/circlesxlet/
- NOTE: On Linux change Win32 to Linux
- Copy CirclesXlet.class to .destination directory:
cp CirclesXlet* $OCAPROOT/bin/CableLabs/simulator/Win32/debug/env/qa/xlet/com/cablelabs/circlesxlet/
- NOTE: On Linux change Win32 to Linux
- Retrieve the hostapp.properties file from https://community.cablelabs.com/svn/OCAPRI/trunk/packaging/package_support/hostapp.properties.
- Move, or remove, the default hostapp.properties:
mv $OCAPROOT/bin/CableLabs/simulator/Win32/debug/env/hostapp.properties $OCAPROOT/bin/CableLabs/simulator/Win32/debug/env/hostapp.properties.bak
- Copy hostapp.properties file to directory on the classpath:
cp hostapp.properties $OCAPROOT/bin/CableLabs/simulator/Win32/debug/env/
- Run the RI:
cd RI_Platform; runRI.sh
The RI should come up and run the Circles Xlet.
After running the Xlet, return the original hostapp.properties to $OCAPROOT/bin/CableLabs/simulator/Win32/debug/env/
There is additional information on running other included applications here: Running QA Apps on the RI