java apps have blank screen
Michael Noiesen
noiesmo at gmail.com
Thu Jun 7 09:15:06 BST 2007
Just a note on beryl and java this might help
I am running Beryl on my system and from time to time I use Frostwire,
however I found when running with beryl I was getting a white window
instead of Frostwires window as expected.
After checking in the beryl channel on irc.freenode I was told about a
work around for this.
I add the following lines to my ~/.bash_profile
AWT_TOOLKIT=MToolkit
export AWT_TOOLKIT
you will need to log off and back on for it to take affect.
/Part of my ~/.bash_profile file/
cat .bash_profile
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
#Set env for java to work with frostwire and java apps under beryl
AWT_TOOLKIT=MToolkit
export AWT_TOOLKIT
# Maximum numbers of lines that can be written to the
Kyran Lange wrote:
> Accidentally hit reply instead of reply to list, so sorry for sending
> you a separate email linley.
>
>
> Do you run compiz/beryl by any chance?
>
> There is a bug in some versions of java which results in swing-based
> programs not rendering properly while using compiz/beryl.
> I think it has been fixed in the latest (beta?) version of java.
>
> I have the same problem running netbeans.
>
> To get around it either turn off compiz/beryl when using the program, or
> do as i do and run the program in a nested x-server.
>
> I use Xephyr (you could also use xnest) with the icewm window manager to
> do this.
>
> $ sudo apt-get install xserver-xephyr icewm
>
> Then use a script similar to:
>
> #! /bin/bash
> # You could use Xnest instead of Xephyr here
> Xephyr :2 -ac -screen 1024x768 &
> icewm --display :2 &
> export DISPLAY=:2
> /path/to/executable &
>
> Make the script executable and launch it.
>
> Regards,
> Kyran.
>
> On Wed, 2007-06-06 at 05:54 -0700, linley caetan wrote:
>
>> I now have 2 java apps jfilesync and frostwire that launch with blank
>> windows on a particular account. Other accounts on the same machine
>> (feisty 7.04 intel laptop) have no problems.
>> I have deleted the relevant .jfs and .frostwire , even .java
>> directories with no luck.
>>
>> Any ideas?
>>
>>
>>
>> ______________________________________________________________________
>> How would you spend $50,000 to create a more sustainable environment
>> in Australia? Go to Yahoo!7 Answers and share your idea.
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-au/attachments/20070607/daf4f468/attachment-0001.htm
More information about the ubuntu-au
mailing list