Problems with Java Swing applications on Ubuntu 8.04 64bit ?

If you are running java apps based on swing (gui) under linux, you should be experiencing some problems, such as a “a completly blank window” or no components showing… This happens if you are using the desktop effects (even in the “Normal” level).

Common applications that I had problems:

  • Apache JMeter
  • Oracle SQLDeveloper
  • IReport

Ok, here is the simple fix: Add these 2 lines in the script that starts the application (sqldeveloper.sh for example).

export AWT_TOOLKIT="MToolkit"
export HOSTNAME=localhost

More details: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6429775

Looks like the 1.6.1 jdk will have this fixed…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s