Using the newest Classapth with gcj ?

David Michel dmichel76@googlemail.com
Fri Apr 3 09:41:00 GMT 2009


Ohh !...sorry I didn't realise this was going to change the
configure/make process...
If I get it to build and still get errors, I guess I'll start a new
thread as it's then a rather different problem than just building it
Cheers
David
2009年4月3日 Andrew Haley <aph@redhat.com>:
> David Michel wrote:
>> 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 ?
>> Ah.  You didn't say you wanted AWT, so I didn't tell you how to build it.
> Sorry, all this GUI stuff isn't my speciality so I normally build without
> it.
>> You need to configure with --enable-java-awt=gtk.
>> Andrew.
>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /