I am finding that the
javac is not in the
$ javac The program 'javac' can be found in the following packages: * default-jdk * ecj * gcj-4.6-jdk * openjdk-6-jdk * gcj-4.5-jdk * openjdk-7-jdk Try: sudo apt-get install <selected package>
Problem 2 :
So I decided to try installing the JEE from Oracle.
But, Oracle JEE is not hosted in the PPA because that's not allowed by the new Java license (which is also the reason why it has been removed from the official Ubuntu repositories); the package in the PPA automatically downloads Oracle Java JDK 7 from its official website and installs it on your Ubuntu / Linux Mint computer, just like the flashplugin-installer package does.
First, what is a PPA?
java_ee_sdk-7-web-jdk7-linux.sh into the
And tried to uncompress it.
$ sudo sh ./java_ee_sdk-7-web-jdk7-linux.sh Could not locate a suitable jar utility. Please ensure that you have Java 7 or newer installed on your system and accessible in your PATH or by setting JAVA_HOME.
Problem 3 :
$ echo $JAVA_HOME /usr/lib/jvm/default-java $ java -version java version "1.7.0_25" OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2) OpenJDK Server VM (build 23.7-b01, mixed mode)
What I think happened was that I removed JDK6 and the
default-java which was a link to the installation went with it.
$JAVA_HOME now points to nothing and it needs to point to
What is the solution for this?