Bug 5485 - Exception in thread "main" java.io.IOException: can't find class file java/lang/Thread.class
Summary: Exception in thread "main" java.io.IOException: can't find class file java/la...
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 4743
  Show dependency treegraph
 
Reported: 2007-12-13 17:12 UTC by Andrew Cagney
Modified: 2008-04-01 18:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2007-12-13 17:12:00 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=377341

 Bug Comments
Opened by Mark Wielaard (mark@klomp.org) 	on 2007-11-12 04:36 EST 	[reply] 	Private

Description of problem:

$ ls -lah /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/rt.jar
lrwxrwxrwx 1 root root 17 2007-11-09 23:34
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/rt.jar -> /libgcj-4.1.2.jar

/libgcj-4.1.2.jar doesn't exist and makes anything using rt.jar to locate core
classes (like gcjh) fail with an error like:

Exception in thread "main" java.io.IOException: can't find class file
java/lang/Thread.class in
java.net.URLClassLoader{urls=[file:/home/mark/src/git/frysk-obj/frysk-imports/tests/./,file:/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/rt.jar],
parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}

Version-Release number of selected component (if applicable):

$ rpm -q java-1.5.0-gcj
java-1.5.0-gcj-1.5.0.0-17.fc8

How reproducible:

Always

Steps to Reproduce:
$ ls -lah /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/rt.jar
  
Actual results:

lrwxrwxrwx 1 root root 17 2007-11-09 23:34
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/rt.jar -> /libgcj-4.1.2.jar


Expected results:

lrwxrwxrwx 1 root root 32 2007-11-12 10:30
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/rt.jar ->
/usr/share/java/libgcj-4.1.2.jar


Additional info:

Seems there is a similar issue for libjawt.so and libjvm.so
Comment 1 Andrew Cagney 2007-12-13 17:14:07 UTC
Adding comment to web pages's Fedora 8 build notes.