This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Compiling JServ to binaries
- To: Konrad Ciborowski <Konrad dot Ciborowski at omicron dot comarch dot pl>
- Subject: Re: Compiling JServ to binaries
- From: Joerg Brunsmann <joerg dot brunsmann at FernUni-Hagen dot de>
- Date: Fri, 14 Apr 2000 13:48:10 +0200
- CC: java-discuss at sourceware dot cygnus dot com
- Organization: Fernuniversitaet Hagen - Software Engineering (Praktische Informatik III)
- References: <38F6E8DE.7ACA8775@omicron.comarch.pl>
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