2.3. Running the Bundle

We first launch the Java Embedded Server software by setting its classes on the CLASSPATH and loading the main class:

setenv CLASSPATH jes_path/lib/framework.jar
java com.sun.jes.impl.framework.Main

The following output will appear on your screen:

Java Embedded Server 2.0

Copyright 1998, 1999 and 2000 Sun Microsystems, Inc. All rights
   reserved.
Use is subject to license terms.

Type 'h[elp]' for a list of commands.
>

The user interface to the framework is an interactive command console. To install our bundle, use the install command:

> install /home/joe/bundles/home.jar

The bundle is installed when the prompt returns. Use the bundles command to examine the current status of the installed bundle:

 > bundles ID STATE ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.