In comp.soft-sys.ptolemy, [EMAIL PROTECTED] (Project Group) writes:
--------

    From the Ptolemy web page--Ptolemy II 2.0.1 Source Downloads.
    http://ptolemy.eecs.berkeley.edu/ptolemyII/index.htm
    
    Under 
    "Instructions
    1. Install Java, if necessary"
    
    It points out that,
    "All versions of Ptolemy II 2.0.1 require Java 1.3 or later. Java 1.3
    is preferred, the code generator will not work with JDK 1.4"
    
    As we are doing several things in the project:
    1. Use Diva to modify the user interface
    2. Try to use Java code to read .xml file, which required JDK1.4!!
    
    We would like to know, how does the code generator affect the use of
    PtolemyII?
    Will it affect our tasks if we use JDK1.4?
--------

The problem is that the Java Class file format changed slightly
between Java 1.3 and Java 1.4.  This caused problems with Soot, the
toolkit that the code generator uses.  See $PTII/doc/codegen.htm
for details, or see
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII2.0/ptII2.0.1/doc/codegen.htm

Soot has since been updated to support Java 1.4.

As a result of this limitation, we concentrated on testing Ptolemy II
2.0.1 with Java 1.3

I believe that at the time the release was working under Java 1.4 as
well.  The only thing that was not working was the code generator.
However, I could be wrong, since all the Java 1.4 changes might not
have made it from the devel tree into the release tree.  In
particular, I'm not sure if absolutely every Diva change necessary 
to run under Java 1.4 made it into the release.

However, I just briefly tried the prebuilt Windows installer version
of Ptolemy II 2.0.2 under Java 1.4.1_01 and I was able to run a model.

Note that you need not use Java 1.4 to read xml files, Ptolemy II uses
the AElfred parser to read in xml files.  That parser can be found in
$PTII/com/microstar.  However, Java 1.4 includes built-in xml
facilities that are not present in 1.3

-Christopher


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

Reply via email to