Install Java 7 Tar Gz Ubuntu Desktop

/ Comments off
  1. Installer Un Tar.gz Ubuntu
  2. Install Tar Gz Linux Mint

Ubuntu Linux: Install Latest Oracle Java 7. Install jdk-7u21-linux-x64.tar.gz. Ultimate and official Oracle Java 7 JDK/JRE running on Ubuntu Linux and Firefox.

There is a on how to install JDK 8 Install the JRE the 32-bit or 64-bit Linux 'compressed binary file' - it has a '.tar.gz' file extension and uncompress it tar -xvf jre-7-linux-i586.tar.gz The JRE 7 package is extracted into./jre1.7.0 directory. Now move the JRE 7 directory to /usr/lib: sudo mv./jre1.7.0. /usr/lib/jvm/jre1.7.0 Afterwards, run the following to get a list of currently installed Java alternatives. Sudo update-alternatives -config java You will get output as: 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: Remember the last number and press enter to exit this utility i.e. In this example remember the number 2.

If only one alternative is shown then remember the number 0. Sudo update-alternatives -install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 3 This will add your new JRE 7 installation into the alternatives list i.e. Use the remembered number + 1, that is, 3 in the example above. Now configure Java to use the Oracle Java JRE: sudo update-alternatives -config java You will see output similar one below - choose the number of jre1.7.0, that is, 3: There are 3 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 3 /usr/lib/jvm/jre1.7.0/jre/bin/java 3 manual mode Press enter to keep the current choice., or type selection number: 3 update-alternatives: using /usr/lib/jvm/jre1.7.0/jre/bin/java to provide /usr/bin/java (java) in manual mode. N.B.: If there was no previous Java installation then the new JRE will be the default and you will not see the above.

Check the version of you new JRE 7 installation: java -version It should produce java version “1.7.0” Java(TM) SE Runtime Environment (build 1.7.0-b147) Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode) In a terminal: mkdir /.mozilla/plugins Remove the IcedTea plugin, if it has been installed. Sudo apt-get remove icedtea6-plugin Remove a former version of the Java plugin (may or may not be present): rm /.mozilla/plugins/libnpjp2.so Now you can install the plugin, by creating a symbolic link (you tell Firefox, where the plugin is located). For 32-bit Java use ln -s /usr/lib/jvm/jre1.7.0/lib/i386/libnpjp2.so /.mozilla/plugins/ For 64-bit Java use ln -s /usr/lib/jvm/jre1.7.0/lib/amd64/libnpjp2.so /.mozilla/plugins/ Confirm that the JRE has been successful by using the.

Here is a tested and working solution for installing Oracle JDK 7 and all its files so 'javac' and everything else works: Here are the commands (just for convenience):. Download the latest Oracle JDK 7 from. Extract the downloaded Oracle Java JDK archive in your home folder - a new folder called 'jdk1.7.003' (for Java JDK7 update 3) should be created.

Rename it to 'java-7-oracle' and move it to /usr/lib/jvm using the following commands: cd sudo mkdir -p /usr/lib/jvm/ #just in case sudo mv java-7-oracle/ /usr/lib/jvm/ 3. Install Update Java package created by Bruce Ingalls (packages available for Ubuntu 11.10, 11.04, 10.10 and 10.04): sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install update-java 4. Now run the following command in a terminal to install Oracle Java JDK: sudo update-java After a few minutes, Oracle Java JDK should be successfully installed on your Ubuntu machine. You can check out the version by running these commands in a terminal: java -version javac -version Update Oracle has released Java 8 (stable). To install it, use the following commands: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer More information @ WebUpd8. This is how I installed it in Oneiric just now. It will be a rather lengthy answer, but it worked for me.

Download latest Java SDK 1.7.0 from Oracle. I appreciate all the previous answers. I want to add this answer to simplify things which is done by to make installation in 2-5 minutes. This installation includes: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer That's all!! Now to check the Java version java -version The output will be like java version '1.7.025' Java(TM) SE Runtime Environment (build 1.7.025-b15) Java HotSpot(TM) Server VM (build 23.25-b01, mixed mode There may come a new version, and then you can simply update it with this command: sudo update-java-alternatives -s java-7-oracle Setting up environment variables sudo apt-get install oracle-java7-set-default For more, check out.

Install JDK 7 on Ubuntu Task: Install JDK 7 on Ubuntu desktop. Mega monster pack 2008. Problem 1: Java version 7 is not available from Ubuntu repositories for your Ubuntu version (prior to 11.10 Oneiric).

You don’t see it neither via 'Ubuntu Software Center' nor via 'Synaptic Package Manager'. What to do: Download JDK 7 binaries from the. Problem 2: You are Debian/Ubuntu user and don’t see applicable.deb package. What to do: Again, download JDK 7 binaries from the, install and configure it manually. Step by step instructions to install and manual configure JDK 7 on the Ubuntu 10.04 LTS (the Lucid Lynx) desktop follow: – For my X64 Ubuntu 10.04 LTS Desktop installation I downloaded Linux x64 – Compressed Binary file named jdk-7-linux-x64.tar.gz.

– Unpack it with command gzip -d jdk-7-linux-x64.tar.gz You will get jdk-7-linux-x64.tar file. – Extract files from tar archive with command tar -xvf jdk-7-linux-x64.tar JDK 7 package is extracted into./jdk1.7.0 directory. – Move JDK 7 directory to place where it should be.

Right, to the /usr/lib/jvm/jdk1.7.0 directory. Use this command for that sudo mv./jdk1.7.0/ /usr/lib/jvm/jdk1.7.0 – Execute this command sudo update-alternatives -config java to know under what number you will config you new Java installation.

You will get output as. $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: Remember the last number and press enter to exit this utility. – Execute this command sudo update-alternatives -install /usr/bin/java java /usr/lib/jvm/jdk1.7.0/jre/bin/java 3 to add your new JDK 7 installation into alternatives list. I put 3 there as 2 was last number for my configuration.

You should use your own number from the previous step increased by 1. – Execute this command sudo update-alternatives -config java. You will see output similar one below.

$sudo update-alternatives –config java There are 3 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 3 /usr/lib/jvm/jdk1.7.0/jre/bin/java 3 manual mode Press enter to keep the current choice., or type selection number: 3 update-alternatives: using /usr/lib/jvm/jdk1.7.0/jre/bin/java to provide /usr/bin/java (java) in manual mode.

In case you have other answer from update-alternatives -config java command, e.g. ‘no alternatives for java’, try this command. $ javac -version javac 1.6.026 To update it, make the same as you did for java runtime environment: sudo update-alternatives –config javac // Check the java compilers you have sudo update-alternatives –install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0/bin/javac -number Pay attention on the change of file location at the end of command.

It is needed as there’s NO “javac” in the directory “/usr/lib/jvm/jdk1.7.0/jre/bin/” we used for JRE configuration in previous command. Apply this technique for other Java binaries you use. Do not forget to change the PATH and JAVAHOME to JAVAHOME=/usr/lib/jvm/jdk1.7.011 and PATH=/usr/lib/jvm/jdk1.7.011/bin:$PATH in /etc/profile.d/java.sh according to your java version of course. Thanks to for the hints about manual JDK 7 installation and configuration.

This post was written for Ubuntu 10.04 some time ago. These days with Ubuntu 12.04 and even 12.10 we have alternative, more convenient way to install original Java 7 package from Oracle. Use this comprehensive manual about. Recently, I installed JDK 7 via PPA on my fresh Ubuntu 12.04 using this manual without any problem.

Installer Un Tar.gz Ubuntu

Thanks to Andrew for his brilliant support. In order to configure Java Plugin from latest installed Java for your favorite Mozilla FireFox browser make this: – Exit Firefox browser if it is already running. – Uninstall any previous installations of Java Plugin, just remove all old symbolic links from the browser plugins directory. – Create a symbolic link to the libnpjp2.so file in the browser plugins directory Go to the plugins sub-directory under the Firefox installation directory cd /plugins – Create the symbolic link ln -s /lib/i386/libnpjp2.so For example, if Firefox is installed at this directory /usr/lib/firefox-10.0.2 and if Java is installed at this directory /usr/lib/jvm/jdk1.7.0 then type in the terminal window to go to the browser plug-in directory: cd /usr/lib/firefox-10.0.2/plugins Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser. Sudo ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnpjp2.so replace ‘i386’ with ‘amd64’ if you have 64 bit Ubuntu installation. Start the Firefox browser. In Firefox, type about:plugins in the Location bar to confirm that the Java Plugin is loaded.

Install

To test that Java plugin is installed and working properly on your FireFox browser, run this. Original source of information is. You can make this decision even more universal. Place symbolic link for Java browser plugin to /usr/lib/mozilla/plugins/ folder.

This way it will work not for the FireFox browser only, but for the Google Chrome browser too, as it uses the same /usr/lib/mozilla/plugins/ directory to get its plugins. Thanks for sharing. Vin Tam have commented about this issue already in concern to javac command. Yes, you are fully right – it is critical for Java developer to check all rest links and it is a lot of work. If you upload your script here with notes about what errors it has I appreciate this. May be someone will help to fix them and community will have full decision for problem of Java manual installation on Ubuntu 10.04. As for me I need Java to run NetBeans IDE for PHP development only.

So changing link to java command only is enough for my purposes. You are right. There is the comment from Vin Tam about it already.

I repeat it for your reference: At the bottom of my screenshot, the version of my java compiler is still 1.6. To update it, it’s similar to what we do for java runtime environment: sudo update-alternatives –config javac // Check the java compilers you have sudo update-alternatives –install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0/bin/javac -number Such a change in the file location on the right is needed as there’s NO “javac” in the directory “/usr/bin/java java /usr/lib/jvm/jdk1.7.0/jre/bin/” The same you should make for other Java binaries you use. Pingback: To Do List After installing Ubuntu 11.10 aka Oneiric Ocelot. I did all that and get the following error: ubuntu@ubuntu:/usr/lib/jvm/jdk1.7.001/jre/bin$ sudo update-alternatives –config javaThere 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/jdk1.7.001/jre/bin/java 3 manual modePress enter to keep the current choice., or type selection number: 2update-alternatives: using /usr/lib/jvm/jdk1.7.001/jre/bin/java to provide /usr/bin/java (java) in manual mode.ubuntu@ubuntu:/usr/lib/jvm/jdk1.7.001/jre/bin$ java -version-bash: /usr/bin/java: No such file or directory I don’t understand why this comes up as /usr/bin/java exists when I look it up!

Install Tar Gz Linux Mint

Can anybody help me?