Running examples PreviousNext
Data Distribution Service (DDS) Forum > DDS Technical Forum >
Message/Author
Next message Ruan Jacobs  posted on Tuesday, June 30, 2009 - 07:46 am
Hi

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.
Next message Ruan Jacobs  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
Next message Hans van 't Hag  posted on Tuesday, June 30, 2009 - 05:50 pm
Hi Ruan,

As this forum is a vendor-neutral forum about DDS aspects 'in general', I suggest you post your questions in the mailing-list of the OpenSpice DDS product as can be found on www.opensplice.org

Maybe you can then also add some information about which version you're using and on which platform.

Thanks,
Hans
Next message Ruan Jacobs  posted on Tuesday, June 30, 2009 - 06:48 pm
Thanx, I'll do that
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action: