Yep, it looks like Ptolemy II 6.0.2 does not compile with Java 1.6.
The fix is not a simple fix.  Steve's changes to array that add
sizes to arrays fixed the problem.  That change is not a simple change
to patch in.

Try using the Ptolemy II cvs distribution with Java 1.6.
For instructions, see:
http://chess.eecs.berkeley.edu/ptexternal

I'll see about a fix.

_Christopher
--------

    Hi,
    
    I try to install Ptolemy II source to add new actors to Kepler but i get
    lots of error messages as,
    
    fast build with 'CLASSPATH="../../../.."
    /SFS/users/turuncu/progs/jdk1.6.0_02/bin/javac -g -O *.java' in
    /SFS/users/turuncu/progs/ptII6.0.2/ptolemy/kernel/util/test
    ../../../../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: ../../../../ptolemy/data/expr/UtilityFunctions.java uses or
    overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    
    i am using Redhat Linux AS 4.0 in EM64T machine and latest version of java
    SDK (1.6.0). How can i solve the problem.
    
    Best regards,
    
    Ufuk Utku Turuncoglu
    ITU, Informatics Institute
    HPC Lab
    
    
    ---------------------------------------------------------------------------
   -
    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