You are not logged in.
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
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
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
Java doesn't fit well with Beryl / Compiz / Compiz-fusion. You can go back to kwin / metacity before executing Java apps.
Offline
You guys nailed it! It looks as though it was beryl that was causing all my grief.
Thanks for the quick replies!
Shane
Offline
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.
Offline