Install and uninstall can't initialize UI running in headless mode

I am having a few errors when attempting to run the install or uninstall for JME in Ubuntu. My install of JME kept crashing so I decided I would try a fresh install but the uninstaller came up with an error in the console.



Can’t initialize UI

Running in headless mode



So I manually uninstalled and tried the installer which produced the same result.



Any Ideas?

It appears that the system is not picking up my JDK but I have set the JAVA_HOME and the path and other java programs don’t work. Which makes me think that the jdk install did not complete or there is a system reference problem.

I installed sun jdk via ppa and it fixed the problem.