Hello, I saw the following error http://gcc.gnu.org/ml/java/1999-q2/msg00453.html and get the same one for a simple HelloWorld program using gcj 2.96 + ant on RH7.3. Here are the details: class HelloWorld { public static void main (String args[]) { System.out.println("Hello World!"); } } [hst@lxshare0313 ant]$ less build.xml <?xml version="1.0"?> <project name="test" default="compile" basedir="."> <property name="src" value="."/> <property name="build" value="build"/> <target name="init"> <mkdir dir="${build}"/> </target> <target name="compile" depends="init"> <!-- Compile the java code --> <javac srcdir="${src}" destdir="${build}"/> </target> </project> [hst@lxshare0313 ant]$ ant -Dbuild.compiler=gcj -v Apache Ant version 1.5 compiled on July 9 2002 Buildfile: build.xml Detected Java version: 1.4 in: /usr/java/j2sdk1.4.1_01/jre Detected OS: Linux parsing buildfile build.xml with URI = file:/home/hst/java/ant/build.xml Project base dir set to: /home/hst/java/ant Build sequence for target `compile' is [init, compile] Complete build sequence is [init, compile] init: compile: [javac] build.xml skipped - don't know how to handle it [javac] build/HelloWorld.class skipped - don't know how to handle it [javac] src/HelloWorld.java added as /home/hst/java/ant/build/src/HelloWorld.class doesn't exist. [javac] src/HelloWorld.o skipped - don't know how to handle it [javac] src/HelloWorld skipped - don't know how to handle it [javac] Compiling 1 source file to /home/hst/java/ant/build [javac] Using gcj compiler dropping /usr/java/j2sdk1.4.1_01/jre/jre/lib/rt.jar from path as it doesn't exist dropping /usr/java/j2sdk1.4.1_01/Classes/classes.jar from path as it doesn't exist dropping /usr/java/j2sdk1.4.1_01/Classes/ui.jar from path as it doesn't exist [javac] Compilation arguments: [javac] '-d' [javac] '/home/hst/java/ant/build' [javac] '-classpath' [javac] '/usr/java/j2sdk1.4.1_01/jre/lib/ext/dnsns.jar:/usr/java/j2sdk1.4.1_01/jre/lib/ext/ldapsec.jar:/usr/java/j2sdk1.4.1_01/jre/lib/ext/localedata.jar:/usr/java/j2sdk1.4.1_01/jre/lib/ext/sunjce_provider.jar:/home/hst/java/ant/build:/home/hst/Reptor/edg-java-tools/jakarta-ant/lib/xml-apis.jar:/home/hst/Reptor/edg-java-tools/jakarta-ant/lib/xercesImpl.jar:/home/hst/Reptor/edg-java-tools/jakarta-ant/lib/optional.jar:/home/hst/Reptor/edg-java-tools/jakarta-ant/lib/junit-3.7.jar:/home/hst/Reptor/edg-java-tools/jakarta-ant/lib/ant.jar:/usr/java/j2sdk1.4.1_01/lib/tools.jar:/usr/java/j2sdk1.4.1_01/jre/lib/rt.jar:/home/hst/java/ant' [javac] '-C' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] File to be compiled: [javac] /home/hst/java/ant/src/HelloWorld.java [javac] java/lang/String.java:0: bad value constant type 0, index 0 BUILD FAILED file:/home/hst/java/ant/build.xml:14: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Total time: 2 seconds However, I succeed when I use the gcj compiler directly: [hst@lxshare0313 src]$ gcj -c HelloWorld.java -o HelloWorld.o [hst@lxshare0313 src]$ gcj --main=HelloWorld -o HelloWorld HelloWorld.o ==> success Any idea what the error above can be? Thanks, Heinz -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Heinz Stockinger, CERN, European Organization for Nuclear Research CMS Experiment/Computing Group - European DataGrid Project (EDG) Bat. 40-3A-24, CH-1211 Geneva 23 phone: +41-22-767-1608, fax: +41-22-767-8940 http://www.cern.ch/hst/