Java Swing App

Garrett Serack gserack at
Tue Dec 31 07:24:13 CST 2002

The real question is, where is the benefit to running windows' version
of Java under Linux, when the native port will work SOOOOOO much better?

While I've often wondered how well Java for Windows worked under wine, I
think that spending any time debugging that would be considered... Odd.

Garrett Serack              

-----Original Message-----
From: wine-users-admin at [mailto:wine-users-admin at]
On Behalf Of David B. Ritch
Sent: 2002 December 30 8:17 PM
To: Wine-Users
Subject: Java Swing App


I'm rather new to Wine, and I'm trying to run a Java Swing application. 
I'm having trouble with it.  Has anyone else gotten Swing-based apps to

I have a test case, basically a swing "hello world" app, and I haven't
been able to get it to work either.  Here's what happens when I try to
compile it:

[dritch at twitch wine]$ wine -- c:/jdk1.3/bin/javac -g -d "."
"" Loading required GL library
wine: Unhandled exception, starting debugger...
Loading required GL library /usr/X11R6/lib/
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  15 (X_QueryTree)
  Resource id in failed request:  0x3a00001
  Serial number of failed request:  67
  Current serial number in output stream:  67
[dritch at twitch wine]$

When I compile it natively under linux and try to run it with wine, I
get the same result.

Here is the application, itself:

import javax.swing.*;
public class HelloWorldSwing {
    public static void main(String[] args) {
        JFrame frame = new JFrame("HelloWorldSwing");
        final JLabel label = new JLabel("Hello World");

I'm running RedHat-7.3, with all the latest updates, Gnome-2, and a
2.4.20 kernel.  I'm using a recent CVS of wine, Dec 23, I think,
compiled with OpenGL support.

Any suggestions of how to make this work, or how to diagnose it further?


David B. Ritch
High Performance Technologies, Inc.
wine-users mailing list
wine-users at

More information about the wine-users mailing list