This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Using the newest Classapth with gcj ?
Originally, I had some errors coming up when using gcc 4.2.4 for
compiling my java application. So I thought I'll update to the latest
gcc hoping it might resolve the problems...now I get a different kinds
of errors:
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:607)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:103)
at java.awt.Window.<init>(Window.java:133)
at java.awt.Frame.<init>(Frame.java:246)
at javax.swing.JFrame.<init>(JFrame.java:114)
at nl.kbna.dioscuri.GUI.<init>(GUI.java:221)
at nl.kbna.dioscuri.GUI.<init>(GUI.java:295)
at nl.kbna.dioscuri.GUI.main(GUI.java:213)
Caused by: java.lang.ClassNotFoundException:
at java.lang.Class.forName(natClass.cc:101)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:583)
I read everywhere that Classpath has not yet implemented everything...
is this error due to that ? (can you guys tell just from this error
message ?). Is it worth for me digging a bit more, or is this just not
going to work as it's simply not implemented yet in Classpath ?
Cheers
david
2009/4/3 David Michel <dmichel76@googlemail.com>:
> Thanks a lot, that's really helpful. It would have taken me ages to
> find where the sources are located !
> Cheers
>
> David
>
> 2009/4/2 Andrew Haley <aph@redhat.com>:
>> David Michel wrote:
>>> I got to reinstall my system and finally went through the make stage properly !
>>>
>>> As I compile my java code against the newly installed jvm, I get some
>>> errors and who'd like to check against the source code itself. Where
>>> can I get this ? Within Eclipse, it is expecting a zip file with the
>>> source code in it....
>>
>> Yeah, I noticed that. ?The sources are in the gcc source dir, under libjava/
>> and libjava/classpath/
>>
>> Andrew.
>>
>>
>>
>