Fix Java Applications in Beryl
From MEPIS Documentation Wiki
For Java 5
Edit ~/.bashrc and add the following at the beginning of the file:
Proceed to close any terminals you have open, and restart X by pressing ctrl+alt+backspace.
[Note: This works for SOME users, but does NOT work for others. So, another workaround is to simply switch window-managers from Beryl back to KWin (KDE) before running your Java application. Stay tuned for further info.]
For Java 6
Please refer to The Beryl Wiki on Java