Hi Eva,

Did you download the Ptolemy sources and rebuild?  This is necessary
to create the .class files.  The Windows installer includes jar files
which require setting the path to include those jar files.  Setting
the classpath to include the jar files is more complex than setting
the classpath to use the .class files directly.  Under any platform
(Windows, Linux etc.) you can build the .class files which makes
setting the CLASSPATH easier.

See "How do I invoke Ptolemy II" at
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIfaq.htm#invoking%20Ptolemy%20II?

How are you starting up Ptolemy?  
If you are using $PTII/bin/vergil, then try
$PTII/bin/vergil -v
It will show you the CLASSPATH that is being used by vergil.

Does $PTII/ptolemy/vergil/VergilApplication.class exist?
If not, then you need to build Ptolemy, see $PTII/doc/install.htm

The short answer is
  setenv PTII /usr/local/src/ptII6.0.2
  cd "$PTII"
  ./configure
  make

Ptolemy II does work with jar files and it does work with jar files
with spaces in them.  There are issues with applets and spaces, see
$PTII/doc/troubleshooting.htm  
This issue may have been fixed.

For more information about the classpath, see
http://java.about.com/od/tutorials/ss/SetClasspath.htm

Getting Tinyos and Viptos to work can be tricky, I suggest you work
from the version of Tinyos that is on the Viptos website.  We are
providing limited support for Viptos, in part because of the
complexity of the interface.

_Christopher

Christopher Brooks (cxh at eecs berkeley edu) University of California
Chess Executive Director                      US Mail: 337 Cory Hall #1774
Programmer/Analyst Chess/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718             (office: 400A Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480  


--------

    Hello everybody.
    
    I am new to the list. 
    I 've been trying to make vergil run for a week now.
    
    I run Ubuntu 7.10.
    My Java version is :
    
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
    
    What is more, some environmental variables are:
    1. setenv PATH = 
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/j
   ava-6-sun/bin
    3.  setenv PTII /usr/local/src/ptII6.0.2
    4.  setenv CLASSPATH /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib
    
    Either with CLASSPATH or without it, I get the error:
    
    "Exception in thread "main" java.lang.NoClassDefFoundError:
    ptolemy/vergil/Vergil Application".
    
    I 've googled it a lot... They say it is a known bug, try not to run jars,.
   ..
    no spaces in front... 
    
    The problem is that I am stuck here for more than a week and I do not find
    something akin to a solution. I am trying to run PTOLEMY-VIPTOS. 
    
    I have also tried on Solaris 10, but I have problems there installing sourc
   e
    of tinyos-2.x, while I have installed tinyos-2.x on Suse and ubuntu. 
    
    I would be grateful if I had a work around for ptolemy-viptos on ubuntu.
    
    Thanks in advance,
    
    Eva Kolega 
    Phd student,
    National Technical University of Athens,
    Greece
    
    
    ---------------------------------------------------------------------------
   -
    Posted to the ptolemy-hackers mailing list.  Please send administrative
    mail for this list to: [EMAIL PROTECTED]
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to