Ubuntu/Applications/Java7
(Created page with "Install Applications | Java7 http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-6-7-jre-...") |
|||
(11 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | [[Ubuntu/ | + | [[Ubuntu/Applications|Applications]] | [[Ubuntu/Applications/Java7|Java7]] | [[Ubuntu/Applications/Conky|Conky]] | [[Ubuntu/Applications/Console_Browsers|Console Browsers]] | [[Ubuntu/Applications/Fail2Ban|Fail2Ban]] | [[Ubuntu/Applications/PDSH|PDSH]] |
− | http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-6-7-jre-or-jdk | + | <br> |
+ | <br\> | ||
+ | http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-6-7-jre-or-jdk<br\> | ||
+ | https://help.ubuntu.com/community/Java | ||
+ | http://java.com/en/download/help/enable_browser_ubuntu.xml | ||
+ | <br\> | ||
+ | ==Download and Install Java== | ||
+ | |||
+ | Download Java: | ||
+ | http://download.oracle.com/otn-pub/java/jdk/7u13-b20/jre-7u13-linux-i586.tar.gz | ||
+ | |||
+ | Remove OpenJDK: | ||
+ | sudo apt-get purge openjdk* | ||
+ | |||
+ | Extract downloaded tar: | ||
+ | tar -xvf ~/Downloads/jre-7u13-linux-i586.tar.gz | ||
+ | |||
+ | Move Java to common location: | ||
+ | sudo mv jre1.7.0_13/* /usr/lib/jvm/jre1.7.0/ | ||
+ | |||
+ | Determine current installed java alternatives: | ||
+ | sudo update-alternatives --config java | ||
+ | |||
+ | There are 2 choices for the alternative java (providing /usr/bin/java). | ||
+ | |||
+ | Selection Path Priority Status | ||
+ | ———————————————————— | ||
+ | * 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode | ||
+ | 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode | ||
+ | 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode | ||
+ | |||
+ | Press enter to keep the current choice[*], or type selection number: | ||
+ | |||
+ | The above example shows you have (3) variants, 0-2. You'll want to install the next as (3). | ||
+ | <br\> | ||
+ | Update Alternatives with Java 7 | ||
+ | sudo update-alternatives --install /usr/bin/java /java /usr/lib/jvm/jre1.7.0/bin/java 3 | ||
+ | |||
+ | Configure Java: | ||
+ | sudo update-alternatives --config java | ||
+ | select the one that has Java 7 via the number to the far left. | ||
+ | |||
+ | Check Installed Version: | ||
+ | java -version | ||
+ | |||
+ | ==Configure Firefox Plugin== | ||
+ | |||
+ | Remove Icedtea (if installed): | ||
+ | sudo apt-get remove icedtea6-plugin | ||
+ | |||
+ | Remove former versions of java plugins | ||
+ | sudo unlink /usr/lib/mozilla/plugins/libnpjp2.so | ||
+ | |||
+ | Find Plugs-ins folder or create new: | ||
+ | find -name mozilla | ||
+ | /usr/lib/mozilla/plugins/ | ||
+ | |||
+ | sudo mkdir -p /usr/lib/mozilla/plugins | ||
+ | |||
+ | Create symbolic link: | ||
+ | sudo ln -s /usr/lib/jvm/jre1.7.0/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/ | ||
+ | |||
+ | ==Configure Chrome Plugin== | ||
+ | ''Note:'' Going to Oracle's Java Tester fails. However, when going to http://www.javatester.org, it passed and proved that Java works in Chrome | ||
+ | |||
+ | Create folder for plugins: | ||
+ | sudo mkdir -p /opt/google/chrome/plugins | ||
+ | |||
+ | Create symbolic link: | ||
+ | sudo ln -s /usr/lib/jvm/jre1.7.0/lib/i386/libnpjp2.so /opt/google/chrome/plugins/ |
Latest revision as of 17:17, 30 July 2015
Applications | Java7 | Conky | Console Browsers | Fail2Ban | PDSH
http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-6-7-jre-or-jdk
https://help.ubuntu.com/community/Java
http://java.com/en/download/help/enable_browser_ubuntu.xml
[edit] Download and Install Java
Download Java:
http://download.oracle.com/otn-pub/java/jdk/7u13-b20/jre-7u13-linux-i586.tar.gz
Remove OpenJDK:
sudo apt-get purge openjdk*
Extract downloaded tar:
tar -xvf ~/Downloads/jre-7u13-linux-i586.tar.gz
Move Java to common location:
sudo mv jre1.7.0_13/* /usr/lib/jvm/jre1.7.0/
Determine current installed java alternatives:
sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status ———————————————————— * 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode Press enter to keep the current choice[*], or type selection number:
The above example shows you have (3) variants, 0-2. You'll want to install the next as (3).
Update Alternatives with Java 7
sudo update-alternatives --install /usr/bin/java /java /usr/lib/jvm/jre1.7.0/bin/java 3
Configure Java:
sudo update-alternatives --config java
select the one that has Java 7 via the number to the far left.
Check Installed Version:
java -version
[edit] Configure Firefox Plugin
Remove Icedtea (if installed):
sudo apt-get remove icedtea6-plugin
Remove former versions of java plugins
sudo unlink /usr/lib/mozilla/plugins/libnpjp2.so
Find Plugs-ins folder or create new:
find -name mozilla /usr/lib/mozilla/plugins/
sudo mkdir -p /usr/lib/mozilla/plugins
Create symbolic link:
sudo ln -s /usr/lib/jvm/jre1.7.0/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
[edit] Configure Chrome Plugin
Note: Going to Oracle's Java Tester fails. However, when going to http://www.javatester.org, it passed and proved that Java works in Chrome
Create folder for plugins:
sudo mkdir -p /opt/google/chrome/plugins
Create symbolic link:
sudo ln -s /usr/lib/jvm/jre1.7.0/lib/i386/libnpjp2.so /opt/google/chrome/plugins/