linux - java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit -
i'm working on xubuntu 13.04 , developing swing applications. wanted try application ran java.lang.noclassdeffounderror: not initialize class java.awt.toolkit on startup. i've found several questions server/client vms , noticed have server vm , linux 64 there no client vm anymore. nevertheless imho problem shouldn't depend on vm i'm running on. has else noticed problem , has solved it? doing wrong? 64bit jdk works fine, when try use 32bit jdk startup fails. thanks in advance! p.s.: java version 1.7.0_25 , same 1.7.0_09 edit when using headless mode, following exceptions occur: java.lang.reflect.invocationtargetexception @ java.awt.eventqueue.invokeandwait(eventqueue.java:1272) @ java.awt.eventqueue.invokeandwait(eventqueue.java:1247) @ javax.swing.swingutilities.invokeandwait(swingutilities.java:1349) @ main.main(main.java:218) caused by: java.awt.headlessexception @ java.awt.graphicsenvironment.checkheadless(graphicsenvironment.j...