The following shows the BundleWorks commands that a developer might use in this typical scenario. This example assumes a custom-developed java application named 'helloserver' relying on Sun's JDK.
Bundle jdk and add to 'bundle inventory'. $ bw bundle jdk /local/dist tgz \ --java.home=/usr/java/jdk1.5.0_12 \ --bundle.version=1.5.0_12 $ bw add /local/dist/jdk-1.5.0_12.tgz /opt/bundles Do the same with the custom application. $ bw bundle java-service /local/dist tgz \ --bundle.name=helloserver \ --bundle.version=1.0 \ --shared.dir=/local/build/helloserver/shared \ --java.main=com.example.app.HelloServer $ bw add /local/dist/helloserver-1.0.tgz /opt/bundles Create a test environment $ bw envcreate /local/env/test Deploy bundles to the environment $ bw deploy /opt/bundles/jdk/1.5.0_12 /local/env/test $ bw deploy /opt/bundles/helloserver/1.0 /local/env/test Use the environment and start the application. $ use test $ helloserver start
Note that a developer could also use the BundleWorks Ant tasks to automate these steps.