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.

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.

share|improve this question
add comment

migrated from stackoverflow.com Aug 11 '11 at 9:03

This question came from our site for professional and enthusiast programmers.

4 Answers

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
share|improve this answer
add comment

Hןת

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

share|improve this answer
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

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.