Am Dienstag, 14. Dezember 2004 19:30 schrieb Joao Victor: > On Tue, 14 Dec 2004 19:10:41 +0100, Michael Koch <[EMAIL PROTECTED]> wrote: > > GCJ uses its own version of GNU classpath. You don't need a > > separate install of it. And its not possible to use it. > > Oh... thanks for pointing that out. > > > Can you try it with gcj 4.0 (aka gcc CVS HEAD). We are currently > > in regression fixing mode only. We only fix bugs that worked in > > earlier versions and not in current ones. Perhaps it youd would > > be best to file a little testcase that shows your bug into > > http://gcc.gnu.org/bugzilla/. > > I'll try it... but maybe the problem is not really a bug, but just > me not knowing how gcj works. So, before i try gcj 4.0, maybe you > know why this is not working: > > I tried compiling the awt.Demo (avaliable on Classpath), this time > without a seperate Classpath, and it compiled fine to native > binary. However, when i try to run it, i get this: > > --------------------- > Exception in thread "main" java.awt.AWTError: Cannot load AWT > toolkit: at java.awt.Toolkit.getDefaultToolkit() > (/usr/lib/libgcj.so.5.0.0) at java.awt.MenuComponent.<clinit>() > (/usr/lib/libgcj.so.5.0.0) at java.lang.Class.initializeClass() > (/usr/lib/libgcj.so.5.0.0) at java.lang.Class.initializeClass() > (/usr/lib/libgcj.so.5.0.0) at _Jv_AllocObjectNoFinalizer > (/usr/lib/libgcj.so.5.0.0) at > gnu.classpath.examples.awt.Demo$MainWindow.Demo$MainWindow() > (Unknown Source) > at gnu.classpath.examples.awt.Demo.main(java.lang.String[]) > (Unknown Source) Caused by: java.lang.ClassNotFoundException: > at java.lang.Class.forName(java.lang.String, boolean, > java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0) > at java.lang.Class.forName(java.lang.String) > (/usr/lib/libgcj.so.5.0.0) at java.awt.Toolkit.getDefaultToolkit() > (/usr/lib/libgcj.so.5.0.0) > > --------------------- > > My CLASSPATH variable is pointing to: > /usr/share/java/libgcj-3.4.0.jar
Empty your CLASSPATH, that jar is not needed for running apps. That may already help you Michael -- Homepage: http://www.worldforge.org/ _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/classpath

