HI all: I can't build gcj in mingw32 in window XP (gcc-4.2.0), this is error out : mkdir -p classes/gnu/classpath/tools/jarsigner mkdir -p classes/gnu/classpath/tools/keytool cp ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/rmi/rmic/templates/*.jav classes/gnu/classpath/too ls/rmi/rmic/templates cp ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/giop/grmic/templates/*.jav classes/gnu/classpath/t ools/giop/grmic/templates cp ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/rmi/*.txt classes/gnu/classpath/tools/rmi/ cp ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/giop/*.txt classes/gnu/classpath/tools/giop/ /d/cdev/mingw_build/gcc_build/gcc/gcj -B/d/cdev/mingw_build/gcc_build/mingw32/libjava/ -B/d/cdev/mingw_build/gcc_build/gcc/ - encoding UTF-8 --bootclasspath '../lib':'../lib/glibj.zip' --classpath . -C -d classes ../../../../../../gcc-4.2.0/libjava/cl asspath/tools/gnu/classpath/tools/*.java ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/*/*.java ../ ../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/*/*/*.java ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/AbstractMethodGenerator.java:0: error: Can't find def ault package 'java.lang'. Check the CLASSPATH environment variable and the access to the archives ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:43: error: Class or interface 'java. io.InputStreamReader' not found in import. import java.io.InputStreamReader; ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:61: error: Type 'String' not found i n the declaration of the argument 'args' of method 'checkHelpKey'. public static void checkHelpKey(String[] args, String helpResourcePath) ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:61: error: Type 'String' not found i n the declaration of the argument 'helpResourcePath' of method 'checkHelpKey'. public static void checkHelpKey(String[] args, String helpResourcePath) ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:65: error: Type 'String' not found i n the declaration of the local variable 'a'. String a = args[i]; ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:78: error: Type 'String' not found i n the declaration of the argument 'helpResourcePath' of method 'printHelp'. public static void printHelp(String helpResourcePath) ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:80: error: Class 'java.lang.NoClassD efFoundError' not found in 'throws'. InputStream in = HelpPrinter.class.getResourceAsStream(helpResourcePath); ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:80: error: Type 'java.lang.ClassNotF oundException' not found in the declaration of the local variable 'write_parm_value$'. InputStream in = HelpPrinter.class.getResourceAsStream(helpResourcePath); ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:80: error: Type 'InputStream' not fo und in the declaration of the local variable 'in'. InputStream in = HelpPrinter.class.getResourceAsStream(helpResourcePath); ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:81: error: Type 'BufferedReader' not found in the declaration of the local variable 'br'. BufferedReader br = new BufferedReader(new InputStreamReader(in)); ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:84: error: Type 'String' not found i n the declaration of the local variable 's'. String s; ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:88: error: Type 'IOException' not fo und in the declaration of the local variable 'x'. catch (IOException x) ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:99: error: Type 'IOException' not fo und in the declaration of the local variable 'ignored'. catch (IOException ignored) ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:111: error: Type 'String' not found in the declaration of the argument 'helpResourcePath' of method 'printHelpAndExit'. public static void printHelpAndExit(String helpResourcePath) ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/appletviewer/AppletClassLoader.java:42: error: Class or interface 'java.util.ArrayList' not found in import. import java.util.ArrayList; ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/appletviewer/AppletClassLoader.java:44: error: Superc lass 'URLClassLoader' of class 'gnu.classpath.tools.appletviewer.AppletClassLoader' not found. public class AppletClassLoader extends URLClassLoader ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/appletviewer/AppletClassLoader.java:52: error: Type ' URL' not found in the declaration of the argument 'codebase' of method '<init>'. public AppletClassLoader(URL codebase, ArrayList archives) ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/appletviewer/AppletClassLoader.java:52: error: Type ' ArrayList' not found in the declaration of the argument 'archives' of method '<init>'. public AppletClassLoader(URL codebase, ArrayList archives) ^ ../../../../../../gcc-4.2.0/libjava/classpath/tools/gnu/classpath/tools/appletviewer/AppletClassLoader.java:77: error: Type ' String' not found in the declaration of the argument 'name' of method 'findClass'. protected Class findClass(String name) throws ClassNotFoundException ^
build spec : $ gcc -v Using built-in specs. Target: mingw32 Configured with: ../../gcc-4.2.0/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/m ingw --enable-threads --disable-nls --enable-languages=c,c++,objc,java --disable-win32-registry --disable-shared --enable-sjl j-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interprete r --enable-hash-synchronization Thread model: win32 gcc version 4.2.0
hmm, I will close it as newer gcc versions are able to build java.