You are not logged in.

#1 2007-08-23 19:55:32

sjb933
Member
Registered: 2007-01-18
Posts: 113

[solved] Java problems -- ALL Java apps (not sure where to post this)

Hey all, I'm having a problem with all Java apps.  I'm fairly coherent with Java, and I develop with it from time to time, but there appears to be a problem with the JRE that is in the repos..

I have a few custom swing apps in the jar format.  When I launch w/ java -jar <filename> the program launches fine and any on-launch popups work just fine.  After that though, the main program window is completely white.  No menu bars load up, no other gui items at all.  It's essentially dead.  This is true to my Java apps as well as say, limewire (which i installed straight from pacman).

I assume this is reproducible by anyone.  Simply try to install and run limewire.  The wizard runs fine, but then the actual program window doesn't seem to render.  Any ideas here?

Thanks!
Shane

Last edited by sjb933 (2007-08-23 21:32:19)

Offline

#2 2007-08-23 20:02:12

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: [solved] Java problems -- ALL Java apps (not sure where to post this)

I've had this problem when running certain window managers like dwm, but I'm not sure why. Try running your Java programs under another window manager like Openbox.

Offline

#3 2007-08-23 20:32:02

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [solved] Java problems -- ALL Java apps (not sure where to post this)

from man dwm

       Java applications which use the XToolkit/XAWT backend may draw grey windows only. The XToolkit/XAWT backend breaks  ICCCM-compliance  in
       recent  JDK  1.5 and early JDK 1.6 versions, because it assumes a reparenting window manager. As a workaround you can use JDK 1.4 (which
       doesn't contain the XToolkit/XAWT backend) or you can set the following environment variable (to use the older Motif  backend  instead):
       AWT_TOOLKIT=MToolkit.

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#4 2007-08-23 20:59:46

Kknd
Member
From: Brazil, Santa Catarina
Registered: 2007-08-15
Posts: 100
Website

Re: [solved] Java problems -- ALL Java apps (not sure where to post this)

Java doesn't fit well with Beryl / Compiz / Compiz-fusion. You can go back to kwin / metacity before executing Java apps.

Offline

#5 2007-08-23 21:32:00

sjb933
Member
Registered: 2007-01-18
Posts: 113

Re: [solved] Java problems -- ALL Java apps (not sure where to post this)

You guys nailed it!  It looks as though it was beryl that was causing all my grief.

Thanks for the quick replies!

Shane

Offline

#6 2007-08-23 22:21:00

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [solved] Java problems -- ALL Java apps (not sure where to post this)

If possible, you may want to look into xgl with beryl. My java apps freeze or don't open at all using beryl WITHOUT xgl, but WITH xgl, they work just fine. tongue

Offline

Board footer

Powered by FluxBB