Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with Tinyviz, which is a Java simulator. When I run it with the command tinyviz, I get this message on my screen:

java -Dpython.cachedir=/tmp/jython.cache -DDBG= -DSIMDBG= 
net.tinyos.sim.SimDriver -gui Starting SimDriver... 
Simulation random seed 1486964521 Initializing simulator objects... 
Exception in thread "main" java.lang.NoClassDefFoundError: net/tinyos/packet/Platform 
at net.tinyos.message.MessageFactory.instantiateTOSMsg( 
at net.tinyos.message.MessageFactory.createTOSMsg( 
at net.tinyos.sim.SimCommands.( 
at net.tinyos.sim.SimDriver.( 
at net.tinyos.sim.SimDriver.main( Caused by: java.lang.ClassNotFoundException: net.tinyos.packet.Platform 
at Method) 
at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( 
at java.lang.ClassLoader.loadClass( ... 5 more
share|improve this question

closed as off-topic by Mateo, Seth, aquaherd, vasa1, Warren Hill Jul 10 '13 at 8:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Linux or Unix which don't involve Ubuntu are off-topic here, but can be asked on Unix & Linux Stack Exchange." – Mateo, Seth, Community, Warren Hill
If this question can be reworded to fit the rules in the help center, please edit the question.

Do you have the source code for this? – Freedom_Ben Jul 10 '13 at 3:46

Generally speaking this kind of error is caused by the Java CLASSPATH not being set correctly.

Most software will come with instructions or a shell script or an installer as to how to set it. If not try setting that variable to the base directory containing .class files, or to the location of the jar file.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.