Install on Ubuntu

Hi all,

im trying to install Servoy on Ubuntu and i get the following error:

Exception in thread “main” java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
at java.awt.Component.(Component.java:568)
at com.izforge.izpack.installer.GUIInstaller.showFatalError(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at com.izforge.izpack.installer.Installer.main(Unknown Source)

does anyone knows what is trying to say?

I have the java sun installed, not open jdk

thank you,

andres

I had the same error message on Ubuntu and thought I had uninstalled OpenJDK. It turned out there were still some OpenJDK pieces remaining that I had to remove.

Find out what happens when you go to a command line and type: java -version

Bruce

That was it, thought i removed Open JDK but didn’t… now i have sun java only and it worked…

Thank you so much!