Oracle released the stable version of Java 8 and it can be installed in Debian using the WebUpd8 repository site.
Meet the best Java Oracle
See how to install Oracle Java 8 via the Debian repository
To install the Oracle Java 8 in Debian via repository, do the following:
Step 1. Open a terminal;
Step 2. Become superuser with the command:
Step 1. Open a terminal;
Step 2. Become superuser with the command:
su -
Step 3. Add the repository of binaries;
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee / etc/apt/sources.list.d/webupd8team-java.list
Step 4. Add the source code repository;
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee-a / etc/apt/sources.list.d/webupd8team-java.list
Step 5. Leave the key in the repository;
apt-key adv - keyserver keyserver.ubuntu.com - recv-keys EEA14886
Step 6. Update the Apt;
apt-get update
Step 7. Now install the program with the following command:
apt-get install oracle-installer-java8
Step 8. There is a package in the repository that automatically sets the environment variables for Java 8 and sets JDK8 as the standard JDK. To install it, use the following command:
sudo apt-get install oracle-java8-set-default
0 comments:
Post a Comment