classpath
[Top][All Lists]
Advanced

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

Re: Help trying to compile


From: Joao Victor
Subject: Re: Help trying to compile
Date: Tue, 14 Dec 2004 18:30:23 +0000

On Tue, 14 Dec 2004 19:10:41 +0100, Michael Koch <address@hidden> 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


Thank you very much,
J.V.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]