[kepler-dev] SyntacticSeries KielerLayoutConnector errors

Christopher Brooks cxh at eecs.berkeley.edu
Fri Oct 1 14:10:41 PDT 2010


Hi Derik,
Use Java 1.6.

On 9/23, Christopher wrote:
> We should probably move to Java 1.6 for Kepler.
> Ptolemy II has required Java 1.6 for awhile.
> Code in ptdb and in ptolemy.cg.lib.syntactic.SyntacticTermList
> require Java 1.6.
>
> Offhand, I'm not sure how to get Ant to require Java 1.6.
>
> Note that under Mac OS X, I had to set JAVA_HOME:
>   export JAVA_HOME=`/usr/libexec/java_home`
> (I put that into my ~/.bash_profile)
> Mac users, see
> http://stackoverflow.com/questions/695350/running-ant-with-jdk-1-6-on-mac-os-x
>
> If I did not set JAVA_HOME, then Java 1.5 was used
> and ant compile failed with:
>
> compile:
>      [echo] Note that you may need to run "ant force-ptolemy compile" to compile ptolemy.
>   [compile] Compiling ptolemy...
>   [compile] Compiling 1336 source files to /Users/cxh/src/kepler/ptolemy/target/classes
>   [compile] /Users/cxh/src/kepler/ptolemy/src/ptolemy/cg/lib/syntactic/SyntacticSeries.java:65: cannot find symbol
>   [compile] symbol  : method push(ptolemy.cg.lib.syntactic.SyntacticTerm)
>   [compile] location: class ptolemy.cg.lib.syntactic.SyntacticTermList
>   [compile]         super.push(term);
>   [compile]              ^
>
> This is with
>   ant -version
> Apache Ant version 1.7.1 compiled on April 8 2010



On 10/1/10 2:07 PM, Derik Barseghian wrote:
> Hi Christopher/ptolemy,
>
> I'm getting a few compilation errors from ptolemy when trying to launch kepler trunk using ptolemy r59357.
>
> Derik
>
> ----------
>
> nceasmacbook:build-area barseghian$ ant run
> Buildfile: build.xml
>
> compile:
> [echo] Note that you may need to run "ant force-ptolemy compile" to compile ptolemy.
> [compile] Compiling ptolemy...
> [compile] Compiling 3618 source files to /Users/barseghian/dev2/kepler.modules/ptolemy/target/classes
> [compile] /Users/barseghian/dev2/kepler.modules/ptolemy/src/ptolemy/cg/lib/syntactic/SyntacticSeries.java:65: cannot find symbol
> [compile] symbol : method push(ptolemy.cg.lib.syntactic.SyntacticTerm)
> [compile] location: class ptolemy.cg.lib.syntactic.SyntacticTermList
> [compile] super.push(term);
> [compile] ^
> [compile] /Users/barseghian/dev2/kepler.modules/ptolemy/src/ptolemy/vergil/actor/KielerLayoutConnector.java:180: moveTo(float,float) in java.awt.geom.GeneralPath cannot be applied to (double,double)
> [compile] path.moveTo(startX, startY);
> [compile] ^
> [compile] /Users/barseghian/dev2/kepler.modules/ptolemy/src/ptolemy/vergil/actor/KielerLayoutConnector.java:251: lineTo(float,float) in java.awt.geom.GeneralPath cannot be applied to (double,double)
> [compile] path.lineTo(endX, endY);
> [compile] ^
> [compile] Note: Some input files use or override a deprecated API.
> [compile] Note: Recompile with -Xlint:deprecation for details.
> [compile] Note: Some input files use unchecked or unsafe operations.
> [compile] Note: Recompile with -Xlint:unchecked for details.
> [compile] 3 errors
>
> _______________________________________________
> Ptexternal-cvs mailing list
> Ptexternal-cvs at chess.eecs.berkeley.edu
> http://chess.eecs.berkeley.edu/ptexternal/listinfo/ptexternal-cvs

-- 
Christopher Brooks, PMP                       University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670


More information about the Kepler-dev mailing list