Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am totally new to Ubuntu and just installed it for the first time. I am trying to install JAVA EE in my ubuntu. I downloaded it from oracle website and its an .sh file. I followed instructions from this website on how to run .sh files: Whenever I hit enter in the terminal it says: Could not locate a suitable jar utility. Please ensure that you have Java 6 or newer installed on your system and accessible in your PATH or by setting JAVA_HOME. Please help...

share|improve this question
i answered a similar question yesterday ,… i hope this will help you – abhirathore2006 Jul 17 at 6:14
up vote 4 down vote accepted

Can't you just sudo apt-get install sun-java6-jdk sun-java6-jre ? Or install the sun-java6-jdk / sun-java6-jre packages with synaptic?

After it finishes try java -version to test it is installed.

share|improve this answer
Is it JAVA EE ? – Idiotic Moron Sep 20 '11 at 8:56
Oh, alright, try to execute that sh after installing jre. – Xavi López Sep 20 '11 at 8:57
I'll try that thanks... – Idiotic Moron Sep 20 '11 at 8:59
Also, take a look here for additional info (not necessarily ubuntu-based) Problems installing Java EE SDK on Linux – Xavi López Sep 20 '11 at 9:00

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.