Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Programming Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Programming Talk
This forum is for all programming questions.
The questions do not have to be directly related to Ubuntu and any programming language is allowed.

 
Thread Tools Display Modes
Old September 7th, 2006   #1
Seine
Gee! These Aren't Roasted!
 
Join Date: Aug 2006
Location: Melbourne
Beans: 184
Ubuntu 9.10 Karmic Koala
Java Swing and XGL?

G'day

I've recently enabled XGL. Sweet. But this has stopped my otherwise super-performing NetBeans IDE (a Java Swing application) to render as a solid grey box.

Does anyone know of issues/tricks regarding getting Swing apps to render under XGL?

Cheers
Jem
Seine is offline   Reply With Quote
Old October 26th, 2006   #2
machaval
5 Cups of Ubuntu
 
machaval's Avatar
 
Join Date: Oct 2005
Beans: 15
Re: Java Swing and XGL?

There is a path to the XGL that will fix your problem. I'm trying to mage beryl guys to include it on the edgy repositoy.
__________________
Mariano de Achaval
machaval is offline   Reply With Quote
Old October 27th, 2006   #3
boban
Way Too Much Ubuntu
 
Join Date: Aug 2006
Location: Poland
Beans: 231
Ubuntu 9.04 Jaunty Jackalope
Re: Java Swing and XGL?

Quote:
Originally Posted by machaval View Post
There is a path to the XGL that will fix your problem. I'm trying to mage beryl guys to include it on the edgy repositoy.
Hi!

I have the same problem... Just let us know when patch will be available...
boban is offline   Reply With Quote
Old October 30th, 2006   #4
boban
Way Too Much Ubuntu
 
Join Date: Aug 2006
Location: Poland
Beans: 231
Ubuntu 9.04 Jaunty Jackalope
Re: Java Swing and XGL?

Quote:
Originally Posted by Seine View Post
G'day
Does anyone know of issues/tricks regarding getting Swing apps to render under XGL?
I've searched beryl forums and I think I found solution... Edit file /etc/environment and add line

Code:
AWT_TOOLKIT="MToolkit"
then reboot... Don't know if it will help with NetBeans, but it helped me in other apps (e.g. JUDE)
boban is offline   Reply With Quote
Old November 2nd, 2006   #5
kaz_greece
First Cup of Ubuntu
 
Join Date: Nov 2006
Beans: 1
Re: Java Swing and XGL?

worked for me!!! Netbeans 5.5 Thanks man
kaz_greece is offline   Reply With Quote
Old November 2nd, 2006   #6
boban
Way Too Much Ubuntu
 
Join Date: Aug 2006
Location: Poland
Beans: 231
Ubuntu 9.04 Jaunty Jackalope
Re: Java Swing and XGL?

Quote:
Originally Posted by kaz_greece View Post
worked for me!!! Netbeans 5.5 Thanks man
Cool!

You are welcome
boban is offline   Reply With Quote
Old January 29th, 2007   #7
littledeer1974
First Cup of Ubuntu
 
Join Date: Dec 2006
Beans: 4
Re: Java Swing and XGL?

Hi, Everyone.
Actually I have the same problem but not about Netbeans.
I am using Eclipse 3.2 to develop a certain swing application, when I'm using Beryl, Eclipse is fine, but my Swing application won't show anything, but that solid gray wall.

And I also tried the /etc/environment thing as mentioned in previous post, but it's still not working for me, (while My Splash Window is OK, using JWindow Class) Is there any further tips?
Thanks in advance.

*PROBLEM SOLVED*
sorry everyone, I forgot to reboot, it works perfect, thanks!!

Last edited by littledeer1974; January 29th, 2007 at 01:29 AM..
littledeer1974 is offline   Reply With Quote
Old January 29th, 2007   #8
Ramses de Norre
I Ubuntu, Therefore, I Am
 
Ramses de Norre's Avatar
 
Join Date: Jan 2006
Location: Leuven, Belgium
Beans: 3,414
Re: Java Swing and XGL?

I installed beryl from deb http://ubuntu.beryl-project.org edgy main and have java6 installed with
Code:
export _JAVA_OPTIONS="-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
set and beryl and xgl render all my swing applications fine.
Ramses de Norre is offline   Reply With Quote
Old May 11th, 2007   #9
buzzler
First Cup of Ubuntu
 
buzzler's Avatar
 
Join Date: May 2007
Beans: 2
Ubuntu 7.04 Feisty Fawn
Re: Java Swing and XGL?

hi
im using feisty, netbeans 5.5 and jdk6
ive tried editing /etc/environment with AWT_TOOLKIT="MToolkit" but failed
i got the following msg

Quote:
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/motif21/libmawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :166
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at sun.security.action.LoadLibraryAction.run(LoadLibr aryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1594)
at java.awt.Toolkit.<clinit>(Toolkit.java:1616)
at java.awt.Color.<clinit>(Color.java:263)
at javax.swing.plaf.metal.MetalTheme.<clinit>(MetalTh eme.java:59)
at javax.swing.plaf.metal.MetalLookAndFeel.getCurrent Theme(MetalLookAndFeel.java:1673)
at javax.swing.plaf.metal.MetalLookAndFeel.createDefa ultTheme(MetalLookAndFeel.java:156
at javax.swing.plaf.metal.MetalLookAndFeel.getDefault s(MetalLookAndFeel.java:1590)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:537)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:577)
at javax.swing.UIManager.initializeDefaultLAF(UIManag er.java:1331)
at javax.swing.UIManager.initialize(UIManager.java:14 1
at javax.swing.UIManager.maybeInitialize(UIManager.ja va:1406)
at javax.swing.UIManager.getDefaults(UIManager.java:6 56)
at javax.swing.filechooser.FileSystemView.getFileSyst emView(FileSystemView.java:63)
at org.openide.filesystems.FileUtil.<clinit>(FileUtil .java:64)
at org.netbeans.core.startup.TopLogging.printSystemIn fo(TopLogging.java:187)
at org.netbeans.core.startup.TopLogging.<init>(TopLog ging.java:112)
at org.netbeans.core.startup.CLIOptions.initialize(CL IOptions.java:205)
at org.netbeans.core.startup.Main.start(Main.java:294 )
at org.netbeans.core.startup.TopThreadGroup.run(TopTh readGroup.java:96)
at java.lang.Thread.run(Thread.java:619)
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/motif21/libmawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :166
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at sun.security.action.LoadLibraryAction.run(LoadLibr aryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1594)
at java.awt.Toolkit.<clinit>(Toolkit.java:1616)
at java.awt.Color.<clinit>(Color.java:263)
at javax.swing.plaf.metal.MetalTheme.<clinit>(MetalTh eme.java:59)
at javax.swing.plaf.metal.MetalLookAndFeel.getCurrent Theme(MetalLookAndFeel.java:1673)
at javax.swing.plaf.metal.MetalLookAndFeel.createDefa ultTheme(MetalLookAndFeel.java:156
at javax.swing.plaf.metal.MetalLookAndFeel.getDefault s(MetalLookAndFeel.java:1590)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:537)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:577)
at javax.swing.UIManager.initializeDefaultLAF(UIManag er.java:1331)
at javax.swing.UIManager.initialize(UIManager.java:14 1
at javax.swing.UIManager.maybeInitialize(UIManager.ja va:1406)
at javax.swing.UIManager.getDefaults(UIManager.java:6 56)
at javax.swing.filechooser.FileSystemView.getFileSyst emView(FileSystemView.java:63)
at org.openide.filesystems.FileUtil.<clinit>(FileUtil .java:64)
at org.netbeans.core.startup.TopLogging.printSystemIn fo(TopLogging.java:187)
at org.netbeans.core.startup.TopLogging.<init>(TopLog ging.java:112)
at org.netbeans.core.startup.CLIOptions.initialize(CL IOptions.java:205)
at org.netbeans.core.startup.Main.start(Main.java:294 )
at org.netbeans.core.startup.TopThreadGroup.run(TopTh readGroup.java:96)
at java.lang.Thread.run(Thread.java:619)
pls help me ..
buzzler is offline   Reply With Quote
Old October 22nd, 2007   #10
xcesarfrancox
Just Give Me the Beans!
 
xcesarfrancox's Avatar
 
Join Date: Jul 2007
Location: Medellin, Colombia
Beans: 62
Ubuntu 8.10 Intrepid Ibex
Re: Java Swing and XGL?

Hi, I'm using Gutsy and Compiz Fusion and it has a plugin in the CCSM named "Workarounds" and there it can be enabled a fix for java apps and other stuff, it works just fine for me
__________________
Ubuntu 8.10 Intrepid Ibex @ Inspiron 1420N Laptop
Intel Core 2 Duo T5450@1.66Ghz | 2x1GB DDR2@667Mhz
nVidia GeForce 8400M GS 256MB DDR3
xcesarfrancox is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:33 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry