IcedTea 1.11 on Fedora 10 - Missing java.util.Scanner

Andrew John Hughes gnu_andrew at member.fsf.org
Tue Aug 18 04:32:25 PDT 2009


2009/8/18 Michael Franz <mvfranz at gmail.com>:
> /usr/lib/jvm/java-gcj/bin/java -classpath . Test
> failed with NoClassDefFoundError: java.util.Scanner
>
>
> On Tue, Aug 18, 2009 at 6:51 AM, Andrew John Hughes
> <gnu_andrew at member.fsf.org> wrote:
>>
>> 2009/8/18 Michael Franz <mvfranz at gmail.com>:
>> > From path:
>> > java -version
>> > java version "1.6.0_0"
>> > OpenJDK Runtime Environment (IcedTea6 1.5) (Fedora-20.b16.fc10-i386)
>> > OpenJDK Server VM (build 14.0-b15, mixed mode)
>> >
>> > From config.log
>> > JAVA=/usr/lib/jvm/java-gcj/bin/java
>> > java version "1.5.0"
>> > gij (GNU libgcj) version 4.3.2 20081105 (Red Hat 4.3.2-7)
>> >
>> > JAVAC=/use/lib/jvm/java-gcj/bin/javac
>> > Eclipse Java Compiler 0.883_R34x, 3.4.1 release Copyright IBM Corp 2000,
>> > 2008
>> >
>> >>
>> >> Bizarre.  Can you find out what JAVA and JAVAC are set to in
>> >> config.log and what -version gives for each?
>> >>
>> >> Thanks,
>> >> --
>> >> Andrew :-)
>> >>
>> >> Free Java Software Engineer
>> >> Red Hat, Inc. (http://www.redhat.com)
>> >>
>> >> Support Free Java!
>> >> Contribute to GNU Classpath and the OpenJDK
>> >> http://www.gnu.org/software/classpath
>> >> http://openjdk.java.net
>> >>
>> >> PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
>> >> Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
>> >
>> >
>>
>> Ok, so configure compiles and runs:
>>
>> public class Test
>> {
>>  public static void main(String[] args)
>>  throws Exception
>>  {
>>    new java.util.Scanner("Hello");
>>  }
>> }
>>
>> using the following commands:
>>
>> /usr/lib/jvm/java-gcj/bin/javac -cp . $JAVACFLAGS Test.java
>> /usr/lib/jvm/java-gcj/bin/java -classpath . Test
>>
>> One (or both) should fail, but they seem to be succeeding.  Can you
>> test these manually and see what results you get?
>>
>> Thanks,
>> --
>> Andrew :-)
>>
>> Free Java Software Engineer
>> Red Hat, Inc. (http://www.redhat.com)
>>
>> Support Free Java!
>> Contribute to GNU Classpath and the OpenJDK
>> http://www.gnu.org/software/classpath
>> http://openjdk.java.net
>>
>> PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
>> Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
>
>

Ok, that's the correct behaviour.  All that remains is to work out why
this results in no rather than yes for that compiler test.
What does $? hold after running that command?
-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8



More information about the distro-pkg-dev mailing list