Java Swing App

Garrett Serack gserack at
Tue Dec 31 09:49:34 CST 2002

Is the software completely written in Java? If so, you don't need to
recompile the Java app to work with Java under Linux.

Java apps run unmodified under linux, most of the time (well they are
supposed to at any rate ;)

Is the Java app distributed as a JAR file, or an exe (which bootstraps
the java process). A bit more information may find a way to get it to
run without involving Wine. 

What app is it? (that may help too ;)

Garrett Serack              

-----Original Message-----
From: David B. Ritch [mailto:dritch at] 
Sent: 2002 December 31 8:25 AM
To: Garrett Serack
Cc: 'Wine-Users'
Subject: RE: Java Swing App


I agree.  However, this is a commercial application, and I don't have
the source code.  That makes porting the native version to Linux a bit
more difficult.

Thanks for the suggestion, though.


On Tue, 2002-12-31 at 08:24, Garrett Serack wrote:

> 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
> run?
> 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 
> /usr/X11R6/lib/
> 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
> Terminated
> [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");
>         frame.getContentPane().add(label);
>         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>         frame.pack();
>         frame.setVisible(true);
>     }
> }
> 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?
> Thanks!
> dbr
David B. Ritch
High Performance Technologies, Inc.

More information about the wine-users mailing list