[kepler-dev] Kepler should require Java 1.6 for compilation

Christopher Brooks cxh at eecs.berkeley.edu
Thu Sep 23 13:49:13 PDT 2010


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

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