Re: Using the newest Classapth with gcj ?
Andrew Haley <[email protected]>
| Newsgroups | gmane.comp.gcc.java.devel |
|---|---|
| Message-ID | <[email protected]> |
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.