Hi,
I'm at the moment trying to set up velocity and ant on my solaris 10
system. I'm not able to build the velocity and whenever i try to do
it, i get the following error. Please advise me if someone has come
across this kind of error before and knows how to fix this up.
bash-3.00# cd velocity-1.4
bash-3.00# ls
LICENSE build src xdocs
NOTICE convert test
README.txt docs velocity-1.4.jar
bin examples velocity-dep-1.4.jar
bash-3.00# cd build/
bash-3.00# ls
build.xml jakarta.scm lib test.sh testcases.xml xsl
bash-3.00# ant jar
Buildfile: build.xml
env:
[echo] java.home = /usr/jdk/instances/jdk1.5.0/jre
[echo] user.home = /
[echo] java.class.path =
/usr/sfw/lib/ant/xml-apis.jar:/usr/sfw/lib/ant/xercesImpl.jar:/usr/sfw/lib/ant/optional.jar:/usr/sfw/lib/ant/ant.jar:/usr/java/lib/tools.jar
prepare:
compile:
[javac] Compiling 195 source files to /opt/swdump/velocity-1.4/bin/classes
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/runtime/parser/Parser.java:3217:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] for (java.util.Enumeration enum =
jj_expentries.elements(); enum.hasMoreElements();) {
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/runtime/parser/Parser.java:3217:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] for (java.util.Enumeration enum =
jj_expentries.elements(); enum.hasMoreElements();) {
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/runtime/parser/Parser.java:3218:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] int[] oldentry = (int[])(enum.nextElement());
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/util/EnumerationIterator.java:33:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] private Enumeration enum = null;
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/util/EnumerationIterator.java:41:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] public EnumerationIterator( Enumeration enum)
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/util/EnumerationIterator.java:43:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] this.enum = enum;
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/util/EnumerationIterator.java:43:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] this.enum = enum;
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/util/EnumerationIterator.java:53:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] return enum.nextElement();
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/util/EnumerationIterator.java:63:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] return enum.hasMoreElements();
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/texen/Generator.java:454:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] Enumeration enum = objs.keys();
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/texen/Generator.java:455:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] while (enum.hasMoreElements())
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/texen/Generator.java:457:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] String key = enum.nextElement().toString();
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/texen/Generator.java:482:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] Enumeration enum = props.propertyNames();
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/texen/Generator.java:484:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] while (enum.hasMoreElements())
[javac] ^
[javac]
/opt/swdump/velocity-1.4/bin/src/org/apache/velocity/texen/Generator.java:486:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] String nm = (String)enum.nextElement();
[javac] ^
[javac] 15 errors
BUILD FAILED
file:/opt/swdump/velocity-1.4/build/build.xml:189: Compile failed; see
the compiler error output for details.
Total time: 12 seconds
bash-3.00#
Thanks
Hidang