Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This is the message error from the terminal :

coca@Bakorng:/var/www/shared$ sh netbeans-7.2-ml-php-linux.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"
coca@Bakorng:/var/www/shared$ 

How do I fix this?

share|improve this question

2 Answers 2

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) 
sh netbeans-7.2.1-ml-linux.sh

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

share|improve this answer

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

Your Answer

 
discard

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.