posted on Tuesday, June 30, 2009 - 07:46 am
I am new to DDS, and the company I work for is interested in your products. I am trying to compile the tutorial (chatroom) example, included in the download, but I receive a "Class not found" exception. I set up all the environmental variables, ran the "build" command in the java folder of the standalone version, but when I try to run it using the command: java -classpath $OSPL_HOME/jar/dcpssaj.jar:bld chatroom.MessageBoard I receive the following exception: java -classpath $OSPL_HOME/jar/dcpssaj.jar:bld chatroom.MessageBoard Exception in thread "main" java.lang.NoClassDefFoundError: chatroom/MessageBoard
Caused by: java.lang.ClassNotFoundException: chatroom.MessageBoard at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: chatroom.MessageBoard. Program will exit.
If someone could please inform me as to what I am doing wrong, I would appreciate it.
posted on Tuesday, June 30, 2009 - 07:47 am
When I open the dcpssaj.jar file (to view contents), I don't see the class either