Cannot load AWT toolkit:

I'm sure this is something silly but I'm confused as to what's wrong. I downloaded the nightly JME zip and when I run the demos I get:

mike@olaf:/opt/jme$ ./

Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:

Hmmm well, it's not able to find the native AWT jars for GTK, which is bad. Are you able to run any Swing/AWT java app?

Damn I forgot that I re-installed Linux and it wiped out my PATH environment in .bashrc. So it was using the GNU classpath I think. I fixed that but I get:

java.lang.NoClassDefFoundError: com/jmex/awt/lwjgl/LWJGLCanvas

        at com.jme.system.lwjgl.LWJGLSystemProvider.<clinit>(Unknown Source)

        at com.jme.system.DisplaySystem.<clinit>(Unknown Source)

        at com.jme.system.lwjgl.LWJGLPropertiesDialog.setUpRendererChooser(Unkno

wn Source)

        at com.jme.system.lwjgl.LWJGLPropertiesDialog.createUI(Unknown Source)

        at com.jme.system.lwjgl.LWJGLPropertiesDialog.<init>(Unknown Source)

        at Source)

        at Source)

        at jmetest.terrain.TestTerrainPage.main(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.


        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

        at java.lang.reflect.Method.invoke(

        at jmetest.TestChooser.start(Unknown Source)

        at jmetest.TestChooser.main(Unknown Source)

Jun 13, 2006 9:07:08 PM cleanup

INFO: Cleaning up resources.

Jun 13, 2006 9:07:08 PM start

INFO: Application ending.


An unexpected error has been detected by HotSpot Virtual Machine:


#  SIGSEGV (0xb) at pc=0xb0fced14, pid=9285, tid=2970790832


Java VM: Java HotSpot™ Client VM (1.5.0_06-b05 mixed mode, sharing)

Problematic frame:

C  0xb0fced14


An error report file with more information is saved as hs_err_pid9285.log


If you would like to submit a bug report, please visit:


./ line 3:  9285 Aborted                java -Djava.library.path=./lib      -cp ./lib/lwjgl.jar:./lib/jogg-0.0.5.jar:./lib/jorbis-0.0.12.jar:./jme.jar:./jm      etest.jar:./jmetest-data.jar:./jme-effects.jar:./jme-model.jar:./jme-terrain.jar      :./jme-ui.jar jmetest.TestChooser

mike@olaf:/opt/jme$ java -version

java version "1.5.0_06"

Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)

Java HotSpot™ Client VM (build 1.5.0_06-b05, mixed mode, sharing)

I can still run the demos from 0.9 but they don't exit - the process seems to hang around until I kill it.

I thought I got over this problem a long time ago!

I had this same problem with Kubuntu a while ago, but it's back. I don't get it. Any hints what to do?


I downloaded 0.10 (I read the filename on the download page as 0.01 and not 0.10)!

Now the demos run but they don't exit when I press escape - they hang around until I kill them off. :frowning: