Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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(MessageFactory.java:122) 
at net.tinyos.message.MessageFactory.createTOSMsg(MessageFactory.java:44) 
at net.tinyos.sim.SimCommands.(SimCommands.java:64) 
at net.tinyos.sim.SimDriver.(SimDriver.java:244) 
at net.tinyos.sim.SimDriver.main(SimDriver.java:539) Caused by: java.lang.ClassNotFoundException: net.tinyos.packet.Platform 
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
at java.security.AccessController.doPrivileged(Native Method) 
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 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

1 Answer 1

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.