I have a PC with Fedora Core 6 I have installed jdk 1.6.0_06 I downloaded Tomcat 6.0.16, did a sucessful ant download. When I do ant, I get a complaint from javac on the first line of Resouce.java, flagging the comment characters "/*" and complaining about Enum (see below). Of cource, javac compiles the single file okay when I hand enter it. What is going wrong?
Thanks, Chuck [EMAIL PROTECTED] apache-tomcat-6.0.16-src]$ su Password: [EMAIL PROTECTED] apache-tomcat-6.0.16-src]# ant -version Apache Ant version 1.6.5 compiled on August 30 2006 [EMAIL PROTECTED] apache-tomcat-6.0.16-src]# which javac /usr/local/jdk1.6.0_06/bin/javac [EMAIL PROTECTED] apache-tomcat-6.0.16-src]# ant Buildfile: build.xml build-prepare: [delete] Deleting directory /home/noren/opennms/apache-tomcat-6.0.16-src/output/build/temp [mkdir] Created dir: /home/noren/opennms/apache-tomcat-6.0.16-src/output/build/temp compile: [javac] Compiling 1045 source files to /home/noren/opennms/apache-tomcat-6.0.16-src/output/classes [javac] ---------- [javac] 1. ERROR in /home/noren/opennms/apache-tomcat-6.0.16-src/java/javax/annotation/Resource.java (at line 1) [javac] /* [javac] ^^ [javac] The type Enum is not generic; it cannot be parameterized with arguments <Resource.AuthenticationType> [javac] ---------- [javac] 1 problem (1 error) BUILD FAILED /home/noren/opennms/apache-tomcat-6.0.16-src/build.xml:109: Compile failed; see the compiler error output for details. Total time: 5 seconds [EMAIL PROTECTED] apache-tomcat-6.0.16-src]#