[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug classpath/31973] New: gjavah doesn't respect CLASSPATH env var



hi!

When javah was provided by gcjh, this was valid:
$ CLASSPATH=. javah  -jni org.kde.DCOP.Client

$ javah -version
gcjh (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)

With javah provided by gjavah

$ CLASSPATH=. javah  -jni org.kde.DCOP.Client
Exception in thread "main" java.io.IOException: can't find class file
org/kde/DCOP/Client.class in
java.net.URLClassLoader{urls=[file:/usr/lib/jvm/java-1.5.0-gcj-4.1-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.71)
   at gnu.classpath.tools.javah.Main.run(libgcj-tools.so.71)
   at gnu.classpath.tools.javah.GcjhMain.main(libgcj-tools.so.71)

Now is needed.
$ javah -classpath . -jni org.kde.DCOP.Client

$ javah -version
javah (GNU Classpath) 0.93


Using the CLASSPATH env var to set classpath is what I personally expect to
work.


-- 
           Summary: gjavah doesn't respect CLASSPATH env var
           Product: classpath
           Version: 0.93
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian at pusling dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31973

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



Reply to: