Hello:
I have successfully built Harmony 6 (rev. 1022139) on a SUSE Linux Enterprise Server 11 using gcc version 4.3.2. I am currently trying to build the Apache Hadoop component (v. 0.21.0) using Harmony; after some modifications I am still getting some errors stating that "The type <x> is already defined" where x is the name of a class. I have tested this using SUN and IBM JDK's and have had no issues. I wanted to know if this is a known issue as I could not find anything related in Apache JIRA. Following, are a series of errors and fixes (provided by Charles Li), while trying to build the Apache Hadoop common subproject: BUILD FAILED /home/harmony/Hadoop-Versions/hadoop-0.21.0/common/build.xml:741: The following error occurred while executing this line: /home/harmony/Hadoop-Versions/hadoop-0.21.0/common/build.xml:324: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. *Resolution: Added tools.jar from $HARMONY_HOME/hdk/jdk/lib to $HARMONY_HOME/hdk/jdk/jre/lib/boot *Resolution: Added entry of tools.jar into bootclasspath.properties in $HARMONY_HOME/hdk/jdk/jre/lib/boot 4. ERROR in /home/harmony/Hadoop-Versions/hadoop-0.21.0/common/src/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsJDiffDoclet.java (at line 20) import com.sun.javadoc.DocErrorReporter; ^^^^^^^^^^^^^^^ The import com.sun.javadoc cannot be resolved *Resolution: Added a jar file (sun-javadoc.jar) to $HARMONY_HOME/hdk/jdk/jre/lib/boot containing all javadoc related classes *Resolution: Added entry of sun-javadoc.jar into bootclasspath.properties in $HARMONY_HOME/hdk/jdk/jre/lib/boot 1. ERROR in /home/harmony/Hadoop-Versions/hadoop-0.21.0/common/src/java/org/apache/hadoop/classification/tools/package-info.java (at line 1) /* ^ The type package-info is already defined It is worth mentioning that the Hadoop common project has 12 package-info.java files but under different directories/packages. Thanks, Guillermo