I decided to switch to Ubuntu OS. Faced a lot of problems. I ask for help in finding an adequate manual for installing java EE from Sun (not OpenJDK). It is possible in English, I am not picky. My actions:

  1. Uploaded on the site oracle.sun java EE c JDK
  2. With the command sudo sh /path/file.sh produced the following
    Please ensure that you have Java 6 or newer installed on your system and accessible in your PATH or by setting JAVA_HOME
  3. Downloaded jre
  4. Installed, good instruction how to install jre is on the site
  5. Checked java -version - refers to the openJDK embedded with ubunta
  6. I registered at the very bottom of the .bashrc file JAVA_HOME = / opt / java / jre1.6.0_27 /
  7. When checking echo $ JAVA_HOME issued /opt/java/jre1.6.027/
  8. I tried to repeat paragraph 2 - it gave the same thing.

If I do something wrong, correct.

UPDATE
Ustnavil java jdk, registered in .bashrc

 JAVA_HOME=/opt/java/jre1.6.0_27/ export PATH=/opt/java/jdk1.6.0_27/bin:$PATH 

When checking -version displays what you need. Now I try to install java_ee without jdk, the .sh file format. Displays:

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

UPDATE 2
incorrectly set the command, instead of sudo sh /path/file.sh it was necessary to call /path/file.sh

Thank you all who responded.

    3 answers 3

    and after all it was possible to make only.

     sudo apt-get remove openjdk sudo apt-get install sun-java6-jdk 

    disaccustom necessary from windows habits

    • sudo apt-get remove openjdk remove all sudo apt-get install sun-javadb can only install this - Viacheslav
    • opened the canonical repositories and found what you meant there - Viacheslav

    Well, write the path to the executable file ...

    cd / usr / bin

    ln -s /opt/java/jre1.6.027/bin/java

    • I tried, did not work - Viacheslav

    "... and accessible in your PATH or by ..." here add /opt/java/jre1.6.0_27/bin to PATH . When running java from the command line, the OS finds the executable file by browsing the directories in the PATH variable. JAVA_HOME is used by some applications (for example, Apache Tomcat) when searching for a JRE.

    • displays the same thing - Viacheslav
    • It is possible that the executable file from OpenJDK is in PATH before yours - did you add the path to the new JRE to the beginning? - yozh
    • openJDK removed from the system - Viacheslav