Re: Error installing Ptolemy on ubuntu

2008-04-07 Thread Christopher Brooks
[This bounced because majordomo is picky]
Hi Eva,
You need to download and install TinyOS

Go to
http://ptolemy.eecs.berkeley.edu/viptos/

Under "Viptos 1.0", follow the "Downloads" link which says:

>  Unix/Linux support files
>
> This file has Unix/Linux line endings.
> * tinyos-1.x-2007-01-17.tar.gz
> (http://ptolemy.eecs.berkeley.edu/viptos1.0/tinyos-1.x-2007-01-17.tar.gz
> (95Mb - tar file of the tinyos-1.x cvs repository.  Downloaded on
> January 17, 2007.  You may either download this repository or
> download a later version using cvs as per the 
> Ptolemy II PtinyOS Domain Installation Notes
> (http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII6.0/ptII/ptolemy/domains/ptinyos/doc/installation.htm)

Take a look at at:
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII6.0/ptII/ptolemy/domains/ptinyos/doc/installation.htm

Note that getting TinyOS and Ptolemy set up is tricky.

Definitely start with the versions of the tools (TinyOS) that we
provide.

_Christopher



Christopher, 

Thank you very much once again. Ptolemy II 7 beta worked for me on Ubuntu. 
On Sol-10 11/06 both versions of ptolemy work just fine as it has java 1.5
installed. 

Now I'm trying to invoke viptos by running bin/viptos and it starts ok. 
I have set the following env vars:

setenv  TOSROOT /opt/tinyos-2.x
setenv  TOSDIR /opt/tinyos-2.x/tos  and finally 
setenv PTINYOS_MOMLROOT /usr/local/src/ptII7.0.1/ptolemy/domains/ptinyos/ut
   il

However, I read the installation notes (either on the site or in the tarbal
   l)
and a 'vendors' directory is mentioned, which I do not have. 

I read the manuall saying that the env variables should be:

setenv TOSROOT $PTII/vendors/ptinyos/tinyos-1.x
setenv TOSDIR $TOSROOT/tos
setenv PTINYOS_MOMLROOT $PTII/vendors/ptinyos/moml

but I do not have vendors. 
What is more, I cannot successfully run the demos as I encounter errors abo
   ut
localtions, xml moml...etc.

I strongly believe that my env vars are not the appropriate ones. 
So, which could be the TOSROOT, please, as I only have
/usr/local/src/ptII7.0.1/ptolemy/domains/ptinyos with no tos in it.
I do not have vendors anyway.

I have tinyos-2.x installed in /opt/tinyos-2.x and I run TOSSIM with script
   s
there.

It seems that I miss something importand here. 

Thanks in advance,

Eva Kolega 
Phd Student
National Technical University of Athens, Greece

  


Christopher Brooks <[EMAIL PROTECTED]> said:

> Hi Eva,
> 
> Ok, I can replicate this with Sun's java.
> 
> The version of Java I tried was:
>   -bash-3.1$ java -version
>   java version "1.6.0_05"
>   Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
>   Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
> 
> I did:
>   wget http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII6.0/ptII6.0.2.src.t
   ar.gz
>   tar -zxf ptII6.0.2.src.tar.gz
>   export PTII=/tmp/cxh/ptII6.0.2
>   cd $PTII
>   ./configure
>   make >& make.out
> 
> What I get is: 
> 
> ../../../ptolemy/data/type/ArrayType.java:423: non-static variable this
cannot be referenced from a static context
> private InequalityTerm _replacementElementTerm = new ElementTypeT
   erm() {
>  ^
> 
> To fix this:
> 
> 1) Use Java 1.5 with Ptolemy II 6.0.2, which is what Ptolemy II 6.0.2
>is documented as using.  
> 
> or
> 
> 2) Try Ptolemy II 7.0.beta, which should work with Ptolemy Java 1.6
> 
> or
> 
> 3) Fix the bug in Ptolemy II 6.0.2.  This could be very difficult
> because there are other changes between 6.0.2 and 7.0.  
> 
> 
> 
> I recommend using Ptolemy II 7.0.beta.  Ptolemy II 7.0.1 should be out
> shortly.
>   
> _Christopher
> 
> 
> 
> Hello. Thank you all for your advice.
> I have tried to install ptolemy on ubuntu as much as I could these da
   ys...
> 
> However, I still have the same problem. 
> My java is SUN java located in /usr/lib/jvm/java-6-sun/bin.
> 
> When I run ./configure I get two errors but I do not think they are s
   evere.
> I
> have attached them at the end.
> 
> Then I run either (make and make install) or (make >& make.out) as Ch
   ristop
>her
> suggests. But nothing happens. I have gnu make 3.81.
> Some error I have are:
> -
   --
> fast build with 'CLASSPATH="../../.." /usr/bin/javac -g -O *.java' in
> /usr/local/src/ptII6.0.2/ptolemy/actor/parameters
> LocationParameter.java:73: cannot access
> ptolemy.data.ty

Re: Error installing Ptolemy on ubuntu

2008-04-07 Thread ekol
Christopher, 

Thank you very much once again. Ptolemy II 7 beta worked for me on Ubuntu. 
On Sol-10 11/06 both versions of ptolemy work just fine as it has java 1.5
installed. 

Now I'm trying to invoke viptos by running bin/viptos and it starts ok. 
I have set the following env vars:

setenv  TOSROOT /opt/tinyos-2.x
setenv  TOSDIR /opt/tinyos-2.x/tos  and finally 
setenv PTINYOS_MOMLROOT /usr/local/src/ptII7.0.1/ptolemy/domains/ptinyos/util

However, I read the installation notes (either on the site or in the tarball)
and a 'vendors' directory is mentioned, which I do not have. 

I read the manuall saying that the env variables should be:

setenv TOSROOT $PTII/vendors/ptinyos/tinyos-1.x
setenv TOSDIR $TOSROOT/tos
setenv PTINYOS_MOMLROOT $PTII/vendors/ptinyos/moml

but I do not have vendors. 
What is more, I cannot successfully run the demos as I encounter errors about
localtions, xml moml...etc.

I strongly believe that my env vars are not the appropriate ones. 
So, which could be the TOSROOT, please, as I only have
/usr/local/src/ptII7.0.1/ptolemy/domains/ptinyos with no tos in it.
I do not have vendors anyway.

I have tinyos-2.x installed in /opt/tinyos-2.x and I run TOSSIM with scripts
there.

It seems that I miss something importand here. 

Thanks in advance,

Eva Kolega 
Phd Student
National Technical University of Athens, Greece

  


Christopher Brooks <[EMAIL PROTECTED]> said:

> Hi Eva,
> 
> Ok, I can replicate this with Sun's java.
> 
> The version of Java I tried was:
>   -bash-3.1$ java -version
>   java version "1.6.0_05"
>   Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
>   Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
> 
> I did:
>   wget http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII6.0/ptII6.0.2.src.tar.gz
>   tar -zxf ptII6.0.2.src.tar.gz
>   export PTII=/tmp/cxh/ptII6.0.2
>   cd $PTII
>   ./configure
>   make >& make.out
> 
> What I get is: 
> 
> ../../../ptolemy/data/type/ArrayType.java:423: non-static variable this
cannot be referenced from a static context
> private InequalityTerm _replacementElementTerm = new 
> ElementTypeTerm() {
>  ^
> 
> To fix this:
> 
> 1) Use Java 1.5 with Ptolemy II 6.0.2, which is what Ptolemy II 6.0.2
>is documented as using.  
> 
> or
> 
> 2) Try Ptolemy II 7.0.beta, which should work with Ptolemy Java 1.6
> 
> or
> 
> 3) Fix the bug in Ptolemy II 6.0.2.  This could be very difficult
> because there are other changes between 6.0.2 and 7.0.  
> 
> 
> 
> I recommend using Ptolemy II 7.0.beta.  Ptolemy II 7.0.1 should be out
> shortly.
>   
> _Christopher
> 
> 
> 
> Hello. Thank you all for your advice.
> I have tried to install ptolemy on ubuntu as much as I could these days...
> 
> However, I still have the same problem. 
> My java is SUN java located in /usr/lib/jvm/java-6-sun/bin.
> 
> When I run ./configure I get two errors but I do not think they are 
> severe.
> I
> have attached them at the end.
> 
> Then I run either (make and make install) or (make >& make.out) as 
> Christop
>her
> suggests. But nothing happens. I have gnu make 3.81.
> Some error I have are:
> 
> ---
> fast build with 'CLASSPATH="../../.." /usr/bin/javac -g -O *.java' in
> /usr/local/src/ptII6.0.2/ptolemy/actor/parameters
> LocationParameter.java:73: cannot access
> ptolemy.data.type.MatrixType.DoubleMatrixType
> class file for ptolemy.data.type.MatrixType$DoubleMatrixType not found
> setTypeEquals(BaseType.DOUBLE_MATRIX);
>   ^
> ./../../ptolemy/data/type/MatrixType.java:158: incompatible types
> found   : ptolemy.data.type.MatrixType.DoubleMatrixType
> required: ptolemy.data.type.MatrixType
> matrixType = BaseType.DOUBLE_MATRIX;
>  ^
> 2 errors
> 
> ---
>-
> make[3]: Entering directory 
> `/usr/local/src/ptII6.0.2/ptolemy/copernicus/ke
>rnel'
> fast build with
> 
> 'CLASSPATH="../../..:/usr/local/src/ptII6.0.2/lib/sootclasses.jar:/usr/loca
>
> l/src/ptII6.0.2/lib/jasminclasses.jar:/usr/local/src/ptII6.0.2/lib/polyglotc
>
> lasses-1.3.2.jar:/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/rt.jar:/usr/lib/jv
>m/java-6-sun-1.6.0.03/jre/lib/jce.jar"
> /usr/bin/javac -g -O *.java' in 
> /usr/local/src/ptII6.0.2/ptolemy/copernicus
>/kernel
> ./../../ptolemy/data/type/ArrayType.java:423: non-static variable this 
> cann
>ot
> be referenced from a static context
> private InequalityTerm _replacementElementTerm = new 
> ElementTypeTer
>m() {
>  ^
> ./../../ptolemy/data/type/ArrayType.java:423: non-static variable this 
> c

Re: Error installing Ptolemy on ubuntu

2008-04-04 Thread Christopher Brooks
Hi Eva,

Ok, I can replicate this with Sun's java.

The version of Java I tried was:
  -bash-3.1$ java -version
  java version "1.6.0_05"
  Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
  Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

I did:
  wget http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII6.0/ptII6.0.2.src.tar.gz
  tar -zxf ptII6.0.2.src.tar.gz
  export PTII=/tmp/cxh/ptII6.0.2
  cd $PTII
  ./configure
  make >& make.out

What I get is: 

../../../ptolemy/data/type/ArrayType.java:423: non-static variable this cannot 
be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTerm() {
 ^

To fix this:

1) Use Java 1.5 with Ptolemy II 6.0.2, which is what Ptolemy II 6.0.2
   is documented as using.  

or

2) Try Ptolemy II 7.0.beta, which should work with Ptolemy Java 1.6

or

3) Fix the bug in Ptolemy II 6.0.2.  This could be very difficult
because there are other changes between 6.0.2 and 7.0.  



I recommend using Ptolemy II 7.0.beta.  Ptolemy II 7.0.1 should be out
shortly.
  
_Christopher



Hello. Thank you all for your advice.
I have tried to install ptolemy on ubuntu as much as I could these days...

However, I still have the same problem. 
My java is SUN java located in /usr/lib/jvm/java-6-sun/bin.

When I run ./configure I get two errors but I do not think they are severe.
I
have attached them at the end.

Then I run either (make and make install) or (make >& make.out) as Christop
   her
suggests. But nothing happens. I have gnu make 3.81.
Some error I have are:
---
fast build with 'CLASSPATH="../../.." /usr/bin/javac -g -O *.java' in
/usr/local/src/ptII6.0.2/ptolemy/actor/parameters
LocationParameter.java:73: cannot access
ptolemy.data.type.MatrixType.DoubleMatrixType
class file for ptolemy.data.type.MatrixType$DoubleMatrixType not found
setTypeEquals(BaseType.DOUBLE_MATRIX);
  ^
./../../ptolemy/data/type/MatrixType.java:158: incompatible types
found   : ptolemy.data.type.MatrixType.DoubleMatrixType
required: ptolemy.data.type.MatrixType
matrixType = BaseType.DOUBLE_MATRIX;
 ^
2 errors
---
   -
make[3]: Entering directory `/usr/local/src/ptII6.0.2/ptolemy/copernicus/ke
   rnel'
fast build with
'CLASSPATH="../../..:/usr/local/src/ptII6.0.2/lib/sootclasses.jar:/usr/loca
   l/src/ptII6.0.2/lib/jasminclasses.jar:/usr/local/src/ptII6.0.2/lib/polyglotc
   lasses-1.3.2.jar:/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/rt.jar:/usr/lib/jv
   m/java-6-sun-1.6.0.03/jre/lib/jce.jar"
/usr/bin/javac -g -O *.java' in /usr/local/src/ptII6.0.2/ptolemy/copernicus
   /kernel
./../../ptolemy/data/type/ArrayType.java:423: non-static variable this cann
   ot
be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTer
   m() {
 ^
./../../ptolemy/data/type/ArrayType.java:423: non-static variable this cann
   ot
be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTer
   m() {
   
   ^
Note: Some input files use or override a deprecated 
---
   --
fast build with 'CLASSPATH="../../../../../.." /usr/bin/javac -g -O *.java'
in
/usr/local/src/ptII6.0.2/ptolemy/codegen/c/domains/sdf/lib
./../../../../../ptolemy/data/type/ArrayType.java:423: non-static variable
this cannot be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTer
   m() {
 ^
./../../../../../ptolemy/data/type/ArrayType.java:423: non-static variable
this cannot be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTer
   m() {
   
   ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
---
   --
make[6]: Leaving directory
`/usr/local/src/ptII6.0.2/ptolemy/codegen/c/actor/lib/test'
fast build with 'CLASSPATH="../../../../.." /usr/bin/javac -g -O *.java' in
/usr/local/src/ptII6.0.2/ptolemy/codegen/c/actor/lib
./../../../../ptolemy/data/type/ArrayType.java:423: non-static variable thi
 

Re: Error installing Ptolemy on ubuntu

2008-04-04 Thread ekol
Hello. Thank you all for your advice.
I have tried to install ptolemy on ubuntu as much as I could these days...

However, I still have the same problem. 
My java is SUN java located in /usr/lib/jvm/java-6-sun/bin.

When I run ./configure I get two errors but I do not think they are severe. I
have attached them at the end.

Then I run either (make and make install) or (make >& make.out) as Christopher
suggests. But nothing happens. I have gnu make 3.81.
Some error I have are:
---
fast build with 'CLASSPATH="../../.." /usr/bin/javac -g -O *.java' in
/usr/local/src/ptII6.0.2/ptolemy/actor/parameters
LocationParameter.java:73: cannot access
ptolemy.data.type.MatrixType.DoubleMatrixType
class file for ptolemy.data.type.MatrixType$DoubleMatrixType not found
setTypeEquals(BaseType.DOUBLE_MATRIX);
  ^
./../../ptolemy/data/type/MatrixType.java:158: incompatible types
found   : ptolemy.data.type.MatrixType.DoubleMatrixType
required: ptolemy.data.type.MatrixType
matrixType = BaseType.DOUBLE_MATRIX;
 ^
2 errors

make[3]: Entering directory `/usr/local/src/ptII6.0.2/ptolemy/copernicus/kernel'
fast build with
'CLASSPATH="../../..:/usr/local/src/ptII6.0.2/lib/sootclasses.jar:/usr/local/src/ptII6.0.2/lib/jasminclasses.jar:/usr/local/src/ptII6.0.2/lib/polyglotclasses-1.3.2.jar:/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/jce.jar"
/usr/bin/javac -g -O *.java' in 
/usr/local/src/ptII6.0.2/ptolemy/copernicus/kernel
./../../ptolemy/data/type/ArrayType.java:423: non-static variable this cannot
be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTerm() {
 ^
./../../ptolemy/data/type/ArrayType.java:423: non-static variable this cannot
be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTerm() {
   ^
Note: Some input files use or override a deprecated 
-
fast build with 'CLASSPATH="../../../../../.." /usr/bin/javac -g -O *.java' in
/usr/local/src/ptII6.0.2/ptolemy/codegen/c/domains/sdf/lib
./../../../../../ptolemy/data/type/ArrayType.java:423: non-static variable
this cannot be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTerm() {
 ^
./../../../../../ptolemy/data/type/ArrayType.java:423: non-static variable
this cannot be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTerm() {
   ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
-
make[6]: Leaving directory
`/usr/local/src/ptII6.0.2/ptolemy/codegen/c/actor/lib/test'
fast build with 'CLASSPATH="../../../../.." /usr/bin/javac -g -O *.java' in
/usr/local/src/ptII6.0.2/ptolemy/codegen/c/actor/lib
./../../../../ptolemy/data/type/ArrayType.java:423: non-static variable this
cannot be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTerm() {
 ^
./../../../../ptolemy/data/type/ArrayType.java:423: non-static variable this
cannot be referenced from a static context
private InequalityTerm _replacementElementTerm = new ElementTypeTerm() {
   ^
--
I have also tried to compile either with CLASSPATH set, or without. Still
nothing good happens.

In ptolemy/data/type I have the attached classes after the compilation.
I do have TypeLattice.class in there and not in ptolemy/data.

I have tried to install ptolemy in a new ubuntu 7-10 machine. I got the errors
at the end.

It seems that there is a problem with ubuntu somehow. I would like to install
Viptos and I have already installed tinyos-2.x on ubuntu, so ptolemy is the
other prerequisite for VIPTOS. I think I should try to migrate to another
Linux distribution. In that case I will unfortunatelly have to go through the
painfull installation of tinyos(package after package).

I would appreciate any new suggestion upon these.
 
Thanks in advance, 
 
Eva Kolega
Phd student
National Technical University of Athens, GREECE


-REST OF THE ERRORS--
--

Re: Error installing Ptolemy on ubuntu

2008-03-31 Thread Jia Zou
Hi,
I had trouble running eclipse on Kubuntu, since the java jdk supported by
aptitude doesn't work. So I had to install it separately by downloading it
from the website. However after I got eclipse running, I didn't have any
trouble with Ptolemy, where all I had to do was set the right paths.
Does you eclipse installation work? If yes, then it should just be problems
with the classpath.

Jia

On Mon, Mar 31, 2008 at 10:56 AM, Matthew Jones <[EMAIL PROTECTED]>
wrote:

> My first guess -- check if you are using gcj rather than Sun's java. gcj
> is installed by default on ubuntu and definitely shows the sorts of
> crazy errors you listed.  If you can verify that you're using Sun's java
> engine rather than gcj.
>
> Matt
>
> [EMAIL PROTECTED] wrote:
> > Hello everybody.
> >
> > Many thanks to Christopher who has helped me a lot with ptolemy. It
> works fine
> > on Solaris 10 with gnu make.
> >
> > Now I am trying to install ptolemy on ubuntu 7.10 but I have too many
> errors
> > with java.
> >
> > I have set PTII, PATH and CLASSPATH variables.
> >
> > I do not know what is wrong.
> >
> > I would be grateful if I had a suggestion for a workaround.
> >
> > Thanks in advance,
> >
> > Eva Kolega
> > Phd student
> > National Technical University of Athens, GREECE
> >
> > SAMPLE ERRORS--
> > Caused by: java.lang.NoClassDefFoundError: Could not initialize class
> > ptolemy.data.type.TypeLattice
> >  at ptolemy.moml.filter.ActorIndex.main(ActorIndex.java:264)
> > Parsing:
> >
> file:/usr/local/src/ptII6.0.2/ptolemy/domains/sdf/demo/LMSAdaptive/LMSAdaptive.xml
> > Warning, failed to parse
> > $CLASSPATH/ptolemy/domains/sdf/demo/LMSAdaptive/LMSAdaptive.xml
> > com.microstar.xml.XmlException: XML element "property" triggers
> exception:
> >   java.lang.NoClassDefFoundError: Could not initialize class
> > ptolemy.data.type.TypeLattice in
> > http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd at line 7 and column
> 69
> > Caused by:
> >  java.lang.NoClassDefFoundError: Could not initialize class
> > ptolemy.data.type.TypeLattice
> >
> >
> >
> 
> > Posted to the ptolemy-hackers mailing list.  Please send administrative
> > mail for this list to: [EMAIL PROTECTED]
> >
>
> --
> ~
> Matthew B. Jones
> Director of Informatics Research and Development
> National Center for Ecological Analysis and Synthesis (NCEAS)
> UC Santa Barbara
> [EMAIL PROTECTED]   Ph: 1-907-523-1960
> http://www.nceas.ucsb.edu/ecoinfo
> ~
>
>
> 
> Posted to the ptolemy-hackers mailing list.  Please send administrative
> mail for this list to: [EMAIL PROTECTED]
>


Re: Error installing Ptolemy on ubuntu

2008-03-31 Thread Matthew Jones
My first guess -- check if you are using gcj rather than Sun's java. gcj 
is installed by default on ubuntu and definitely shows the sorts of 
crazy errors you listed.  If you can verify that you're using Sun's java 
engine rather than gcj.


Matt

[EMAIL PROTECTED] wrote:
Hello everybody. 


Many thanks to Christopher who has helped me a lot with ptolemy. It works fine
on Solaris 10 with gnu make. 


Now I am trying to install ptolemy on ubuntu 7.10 but I have too many errors
with java.

I have set PTII, PATH and CLASSPATH variables. 


I do not know what is wrong.

I would be grateful if I had a suggestion for a workaround.

Thanks in advance, 


Eva Kolega
Phd student
National Technical University of Athens, GREECE

SAMPLE ERRORS--
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
ptolemy.data.type.TypeLattice
 at ptolemy.moml.filter.ActorIndex.main(ActorIndex.java:264)
Parsing:
file:/usr/local/src/ptII6.0.2/ptolemy/domains/sdf/demo/LMSAdaptive/LMSAdaptive.xml
Warning, failed to parse
$CLASSPATH/ptolemy/domains/sdf/demo/LMSAdaptive/LMSAdaptive.xml
com.microstar.xml.XmlException: XML element "property" triggers exception:
  java.lang.NoClassDefFoundError: Could not initialize class
ptolemy.data.type.TypeLattice in
http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd at line 7 and column 69
Caused by:
 java.lang.NoClassDefFoundError: Could not initialize class
ptolemy.data.type.TypeLattice



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



--
~
Matthew B. Jones
Director of Informatics Research and Development
National Center for Ecological Analysis and Synthesis (NCEAS)
UC Santa Barbara
[EMAIL PROTECTED]   Ph: 1-907-523-1960
http://www.nceas.ucsb.edu/ecoinfo
~


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


Re: Error installing Ptolemy on ubuntu

2008-03-31 Thread Christopher Brooks
Hi Eva,
Either your classpath is not set properly or else the file
$PTII/ptolemy/data/TypeLattice.class does not exist.

Does $PTII/ptolemy/data/TypeLattice.class exist?

Did you build Ptolemy using the commands below?
 cd $PTII
 ./configure
 make >& make.out

Does make.out contain errors? Look for lines that have "***" in them.

_Christopher



Hello everybody. 

Many thanks to Christopher who has helped me a lot with ptolemy. It works f
   ine
on Solaris 10 with gnu make. 

Now I am trying to install ptolemy on ubuntu 7.10 but I have too many error
   s
with java.

I have set PTII, PATH and CLASSPATH variables. 

I do not know what is wrong.

I would be grateful if I had a suggestion for a workaround.

Thanks in advance, 

Eva Kolega
Phd student
National Technical University of Athens, GREECE

SAMPLE ERRORS--
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
ptolemy.data.type.TypeLattice
 at ptolemy.moml.filter.ActorIndex.main(ActorIndex.java:264)
Parsing:
file:/usr/local/src/ptII6.0.2/ptolemy/domains/sdf/demo/LMSAdaptive/LMSAdapt
   ive.xml
Warning, failed to parse
$CLASSPATH/ptolemy/domains/sdf/demo/LMSAdaptive/LMSAdaptive.xml
com.microstar.xml.XmlException: XML element "property" triggers exception:
  java.lang.NoClassDefFoundError: Could not initialize class
ptolemy.data.type.TypeLattice in
http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd at line 7 and column 69
Caused by:
 java.lang.NoClassDefFoundError: Could not initialize class
ptolemy.data.type.TypeLattice


---
   -
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]