Bugzilla – Bug 5071
Not able to build using Java 1.6
Last modified: 2007-03-02 15:30:50
You need to log in before you can comment on or make changes to this bug.
Hi, On our Sun server (Dual Core AMD Opteron) with SLES10, Java 1.6, and Ant 1.7, we are not able to build GT 4.0.4. We are getting this error message when it tries to build the JAVA WS Core. So, please provide a binary distribution for SLES10. Thank you. regards, Samatha compileStubs: jarStubs: compile: [javac] Compiling 319 source files to /home/globus/software/gt4.0.4-all-source-installer/source-trees/wsrf/java/core/source/build/classes [javac] /home/globus/software/gt4.0.4-all-source-installer/source-trees/wsrf/java/core/source/src/org/globus/axis/description/ServiceDescUtil.java:52: as of release 5, 'enum' is a keyword, and may not be used as an identifier [javac] (use -source 1.4 or lower to use 'enum' as an identifier) [javac] import org.apache.axis.enum.Scope; [javac] ^ [javac] /home/globus/software/gt4.0.4-all-source-installer/source-trees/wsrf/java/core/source/src/org/globus/axis/providers/RPCProvider.java:24: as of release 5, 'enum' is a keyword, and may not be used as an identifier [javac] (use -source 1.4 or lower to use 'enum' as an identifier) [javac] import org.apache.axis.enum.Scope; [javac] ^ [javac] /home/globus/software/gt4.0.4-all-source-installer/source-trees/wsrf/java/core/source/src/org/globus/wsrf/impl/ServiceResourceHome.java:17: as of release 5, 'enum' is a keyword, and may not be used as an identifier [javac] (use -source 1.4 or lower to use 'enum' as an identifier) [javac] import org.apache.axis.enum.Scope; [javac] ^ [javac] 3 errors BUILD FAILED /home/globus/software/gt4.0.4-all-source-installer/source-trees/wsrf/java/core/source/build.xml:212: Compile failed; see the compiler error output for deta ils. Total time: 2 seconds ERROR: Build has failed
Created an attachment (id=1197) [details] Patch to build when Ant 1.7 and JDK 1.6 is used
Charles will add a link from the download page and platform notes.
Added note to <http://www.globus.org/toolkit/downloads/4.0.4/#source> and <http://www.globus.org/toolkit/docs/4.0/admin/docbook/ch03.html#s-prereq-required>. Patch is available at ftp://ftp.globus.org/pub/gt4/4.0/4.0.4/updates/src/java16.patch. I modified it to be relative to source-trees/wsrf so it can be applied from inside the installer.