RE: Java Swing App

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



                                                                          
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@winehq.com [mailto:wine-users-admin@winehq.com]
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
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@twitch wine]$ wine -- c:/jdk1.3/bin/javac -g -d "."
"HelloWorldSwing.java" Loading required GL library
/usr/X11R6/lib/libGL.so.1.2
wine: Unhandled exception, starting debugger...
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
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@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.
_______________________________________________
wine-users mailing list
wine-users@winehq.com http://www.winehq.com/mailman/listinfo/wine-users

_______________________________________________
wine-users mailing list
wine-users@winehq.com
http://www.winehq.com/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux