Mailinglist Archive: opensuse (4253 mails)

< Previous Next >
Re: [opensuse] 10.3 Java Issues, More Info
  • From: "Adam Sailer" <ASailer@xxxxxxx>
  • Date: Sun, 7 Oct 2007 00:37:18 -0700
  • Message-id: <73A3353B985ABC4CB383FE3A52F9337C39E5B7@xxxxxxxxxxxxxxx>
-----Original Message-----
From: JP Rosevear [mailto:jpr@xxxxxxxxxx]
Sent: Sat 10/6/2007 9:18 PM
To: Adam Sailer
Cc: opensuse@xxxxxxxxxxxx
Subject: Re: [opensuse] 10.3 Java Issues, More Info
 

On Sat, 2007-10-06 at 13:56 -0700, Adam Sailer wrote:
> Ok, it looks like significant changes implemented in Gnome 2.20 GTK+ 
> have broken LookAndFeel support in Java.
> 
> I can run Netbeans, the JDK demo apps, and my apps (Swing GUIs) as 
> long as I use the default Java laf. When I try to use the GTK+ laf, or 
> a third-party laf from a jar, is when crashes happen. Limewire crashes 
> since it uses a custom laf.
> 
> Oddly enough, the output of:
> System.out.println("UIManager.getSystemLookAndFeelClassName()); returns:
> 
> "com.sun.java.swing.plaf.gtk.GTKLookAndFeel" when run as a user,
> 
> "javax.swing.plaf.metal.MetalLookAndFeel" when run as root.

Adam, as per Benji are you using Sun's java from 10.3?

Upstream I see one possible issue:
http://bugzilla.gnome.org/show_bug.cgi?id=479929

This implies 'export GTK_MODULES=' may work around the issue, does that solve
it for you?


-JP
--
JP Rosevear <jpr@xxxxxxxxxx>
Novell, Inc.

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx For additional
commands, e-mail: opensuse+help@xxxxxxxxxxxx


I added this line to my .bashrc file, and it works if I launch from the
gnome-terminal. However, if I launch an app by clicking on the executable jar
file, no-go.

Also, I created a copy of the netbeans launcher and added the laf switch;
Command: "/opt/netbeans-5-5.1/bin/netbeans" --laf
com.sun.java.swing.plaf.gtk.GTKLookAndFeel

This worked in 10.2, not in 10.3

How do I make this 'export GTK_MODULES=' and the sloppy lock one, global and
for all users?



--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups