Compiling JServ to binaries
Joerg Brunsmann
joerg.brunsmann@FernUni-Hagen.de
Fri Apr 14 04:48:00 GMT 2000
Konrad Ciborowski wrote:
> public static void init(ClassLoader a)
> {
> a.getSystemResource(new String("am"));
> }
> }
>> javac has no trouble compiling this one but gcj again returns:
>> Try.java: In method `init(java.lang.ClassLoader)':
> Try.java:6: Can't find method `getSystemResource(Ljava/lang/String;)' in
> class `
> java.lang.ClassLoader'.
> a.getSystemResource(new String("am"));
> ^
> 1 error
>> The funny thing is that the ClassLoader.class file is the
> very same that was installed during the libgcj installation.
> Does this simply mean that gcj is not fully compliant with
> jdk 1.1 (getSystemResource is a jdk 1.1 method)? Or perhaps
> there is something else I am missing?
Perhaps you are using an older version of gcj? What does
$ gcj -v
spit out? What libgcj version you are using? Did you try to compile
ClassLoader.getSystemResource(new String("am"))
Also you might want to have a look at:
http://sourceware.cygnus.com/ml/java-discuss/1999-q4/msg00337.html
Jörg
More information about the Java
mailing list