gcjh-4.3 has incorrect classpath.

Bug #376884 reported by Jack Kelly
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcj-4.3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.