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:
- Uploaded on the site oracle.sun java EE c JDK
- 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
- Downloaded jre
- Installed, good instruction how to install jre is on the site
- Checked java -version - refers to the openJDK embedded with ubunta
- I registered at the very bottom of the .bashrc file JAVA_HOME = / opt / java / jre1.6.0_27 /
- When checking echo $ JAVA_HOME issued /opt/java/jre1.6.027/
- 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.