This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: FYI: re-enable xlib peers


>>>>> "Scott" == Scott Gilbertson <scottg@mantatest.com> writes:

Scott>  1. I configured with --enable-java-awt=xlib, but the built
Scott> executable is looking for the GTK toolkit

I didn't try to reproduce this one, sorry.

Scott>  2. Building again with -Dawt.toolkit=gnu.awt.xlib.XToolkit,
Scott> the resulting executable crashes (see backtrace below)

Scott> The application (I tried both static and dynamic executables)
Scott> runs for a second or so, and manages to put up some graphics,
Scott> then says "Aborted".  Interpreted, it immediately aborts
Scott> without apparently doing anything at all.

I don't see this.  This kind of error is pretty serious ...

I built the Classpath awt example.  When I run it with the xlib peers
I see:

Exception in thread "main" java.lang.UnsupportedOperationException
   at gnu.awt.xlib.XToolkit.getLocalGraphicsEnvironment (XToolkit.java:364)
   at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (GraphicsEnvironment.java:104)
   at java.awt.Window.<init> (Window.java:231)
   at java.awt.Dialog.<init> (Dialog.java:203)
   at java.awt.Dialog.<init> (Dialog.java:180)
   at java.awt.Dialog.<init> (Dialog.java:140)
   at Demo$DialogWindow.<init> (D)
   at Demo$MainWindow.<init> (D)
   at Demo.main (D)


I guess this is a new requirement on the toolkit that must be
satisfied for things to work.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]