I had removed OpenJDK installed by default from Ubuntu Software Center.

Eclipse had been showing that Installed JRE is OpenJDK.

I wanted eclipse should be configured to jdk I already installed and configured.

After Removing installed JRE from eclipse and pointed to my JDK installed, When I run my Project I am facing an error that "Starting apache-tomcat-6.0.32 The specified JRE installation does not exist".

I had deployed application war at tomcat webapps and applicaion is running fine.

Also, My Core Java is executed fine by Eclipse.

Kindly provide some suggestions.


In Ubuntu, you can have multiple versions of Java installed in your system.

Currently, there are several implementations of Java with their respective JDK package.

  • OpenJDK - openjdk-6-jdk
  • Sun Java - sun-java6-jdk
  • and others including IBM Java

You can choose between the versions that you want to use with Ubuntu using the following command.

sudo update-alternatives --config java


try "export JAVA_HOME={your eclipse java folder}" and then in the same terminal session run tomcat: "startup.sh"


I had configured RunConfigurations and Project setting in Eclipse. Now project is running appropriately in eclipse.


You can create a link to your new sun java. Just download the jdk from Oracle's website and set the path. I think this link might help you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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