Set your CLASSPATH to include the following:
ens.jar file - ens.jar
(For Messaging Server, the ens.jar is located in the msg-server-base/java/jars/ directory.)
Java Message Service - full-path/jms1.0.2/jms.jar
Change to the msg-server-base/examples/enssdk/java directory.
Run the following command:
javac com/iplanet/ens/samples/JmsSample.java |