Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

This is the message error from the terminal :

coca@Bakorng:/var/www/shared$ sh 
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...
Can`t initialize UI
Running in headless mode

Exception: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in     thread "main"

How do I fix this?

share|improve this question

2 Answers 2

Your report is similar to this one which suggests simply uninstalling OpenJDK 6 and using the latest version of OpenJDK 7 instead.

share|improve this answer

For some reason the sh installer does not work with the openJDK 7. Quick fix to install is to change back to JDK 6. run:

sudo update-alternatives --config java
(select java 6) 

the installer should run and then just switch back to the java 7 JDK with update-alternatives.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.