[Bug 376884] [NEW] gcjh-4.3 has incorrect classpath.
Jack Kelly
endgame.dos at gmail.com
Fri May 15 10:49:54 UTC 2009
Public bug reported:
Binary package hint: gcj-4.3
To reproduce:
Create a .java file with native functions:
Test.java: 8<------
public class Test {
public static native void cxxFunc();
}
------------------>8
Compile with gcj:
$ gcj -C Test.java
Try to generate a header from the class file (fails):
$ gcjh Test
Exception in thread "main" java.io.IOException: can't find class file Test.class in java.net.URLClassLoader{urls=[file:/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre/lib/rt.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
at gnu.classpath.tools.javah.Main.getClass(libgcj-tools.so.90)
at gnu.classpath.tools.javah.Main.run(libgcj-tools.so.90)
at gnu.classpath.tools.javah.GcjhMain.main(libgcj-tools.so.90)
The actual file needed is elsewhere:
$ gcjh -cp .:/usr/share/java/libgcj.jar Test
(works)
System information:
$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
$ apt-cache policy gcj-4.3
gcj-4.3:
Installed: 4.3.3-5ubuntu4
Candidate: 4.3.3-5ubuntu4
Version table:
*** 4.3.3-5ubuntu4 0
500 http://mirror.internode.on.net jaunty/main Packages
100 /var/lib/dpkg/status
** Affects: gcj-4.3 (Ubuntu)
Importance: Undecided
Status: New
--
gcjh-4.3 has incorrect classpath.
https://bugs.launchpad.net/bugs/376884
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list