Sun java jre linux

Как установить Oracle (Sun) Java JRE на Linux Mint

Работая под Linux вам рано или поздно потребуется Java от Oracle (Sun).
В данной статье описано как установить Java Jre из под Linux Mint.

В статье все действия выполняются от не root пользователя
Первым делом необходимо запустить командную строку.

В командной строке необходимо прописать

Данная команда делает Update и удаляет OpenJdk.

OpenJdk по умолчанию устанавливается с LibreOffice.
Для установки Oracle Java необходимо удалить OpenJdk.

Так-же рекомендуется удалить все ненужные пакеты:

Установка Oracle Java

Необходимо перейти по ссылке и Скачать архив с Java.
На момент написания этой статьи было установлено Jre 1.8.0_51.
Необходимо проверить разрядность вашего PC.

Для установки Java необходимо создать директорию.
Создаем папки:
Если ваш PC имеет разрядность x32.
Создаем папку в командной строке:

Если ваш PC имеет разрядность x64.
Создаем папку в командной строке:

Приступим к распаковке архива с вашей Java.
Необходимо попасть в папку, где находится архив с вашей Java.
(В примере разбирается данный случай: /home/fixlix/Загрузки/jre-8u51-linux-i586.tar.gz)

В командной строке необходимо выполнить команды:
Если ваш PC имеет разрядность x32

Если ваш PC имеет разрядность x64

Последним шагом необходимо сделать вашу JRE по умолчанию.
Если ваш PC имеет разрядность x32

Если ваш PC имеет разрядность x64

Установите обновления на всякий случай:

Перезагрузите PC. Java Jre установлена и функционирует.

Источник

5 Installation of the JDK and JRE on Linux Platforms

This topic describes the installation procedures of the JDK and JRE on the Linux platform, along with the system requirements.

General Notes About Installing the JDK and JRE on Linux Platforms

This topic describes general information about installing JDK and JRE 10 on Linux platforms.

Installing the JDK automatically creates a directory called jdk– 10 . interim.update.patch . For the JRE, the software automatically creates a directory called jre– 10 . interim.update.patch .

If you install Java SE Runtime Environment in a specific location such as /usr/jdk (for JDK) or /usr/jre (for JRE), then you must log in with root credentials to gain the necessary permissions. If you do not have root access, then either install the Java SE Runtime Environment into your home directory or a subdirectory for which you have write permissions.

If you install the software in a directory that contains a subdirectory named jdk– 10 . interim.update.patch (for JDK) or jre– 10 . interim.update.patch (for JRE), then the new software overwrites files of the same name in that directory. Ensure that you rename the old directory if it contains files that you would like to keep.

By default, the installation script configures the system such that the backing store for system preferences is created inside the JDK or JRE’s installation directory as applicable. If the JDK or JRE is installed on a network-mounted drive, then the system preferences can be exported for sharing with Java runtime environments on other machines.

System Requirements for Installing JDK and JRE on Linux Platforms

See Oracle JDK Certified Systems Configurations for information about supported platforms, operating systems, and browsers.

JDK and JRE Installation Instruction Notation for Linux Platforms

Instructions for installing either JDK or JRE contains a version notation that represents the Feature, Interim, and Update version information.

For example, if you are installing JDK 10 Interim 0, Update 2, and Patch 1, then the following string represents the name of the bundle:

Читайте также:  Создать img для linux

jdk- 10 . interim.update.patch -linux-x64_bin.tar.gz

Installation of the JDK on Linux from Archive Binaries and RPM Packages

You can install the Java Development Kit (JDK) on a Linux platform from archive binary files or from Red Hat Package Manager (RPM) packages.

Installation can be performed by using one of the following processes:

From archive binaries ( .tar.gz ): This allows you to install a private version of the JDK for the current user into any location, without affecting other JDK installations. However, it may involve manual steps to get some of the features to work. See the following table for the options available for downloading and installing the JDK from archive binaries.

From RPM packages ( .rpm ): This allows you to perform a systemwide installation of the JDK for all users, and requires root access. RPM-based Linux platforms are based on Red Hat and SuSE. See the following table for the options available for downloading and installing the JDK from RPM packages.

When you download and install the JDK, the associated Java Runtime Environment (JRE) is also installed.

The following table lists the options and instructions for downloading and installing the JDK 10 release on a Linux platform:

Download File Instructions Architecture Who Can Install
jdk- 10 . interim.update.patch -linux-x64.tar.gz Installing the 64-Bit JDK 10 on Linux Platforms 64-bit Anyone
jdk- 10 . interim.update.patch -linux-x64.rpm Installing the 64-Bit JDK on RPM-Based Linux Platforms 64-bit RPM-based Linux Root

Installing the 64-Bit JDK 10 on Linux Platforms

You can install the JDK for 64-bit Linux, from an archive binary file ( .tar.gz ).

  1. Download the file, jdk- 10 . interim.update.patch _linux-x64_bin.tar.gz .

Before you download a file, you must accept the license agreement. The archive binary can be installed by anyone (not only by root users) in any location that you can write to.

The .tar.gz archive file (also called a tarball) is a file that can be simultaneously uncompressed and extracted in one step.

$ tar zxvf jdk- 10 . interim.update.patch _linux-x64_bin.tar.gz

The Java Development Kit files are installed in a directory called jdk- 10 . interim.update.patch in the current directory.

Installing the 64-Bit JDK on RPM-Based Linux Platforms

You can install the JDK on 64-bit RPM-based Linux platforms, such as Red Hat and SuSE, by using an RPM binary file ( .rpm ) in the system location.

  1. Download the file, jdk- 10 . interim.update.patch _linux-x64_bin.rpm .

Before you download a file, you must accept the license agreement.

$ rpm -ivh jdk- 10 . interim.update.patch _linux-x64_bin.rpm

JDK 10 can coexist with earlier versions of JDK. For each version, a new directory is created, the default directory being /usr/java/jdk. interim.update.patch .

Upgrade the package using the following command:

$ rpm -Uvh jdk- 10 . interim.update.patch _linux-x64_bin.rpm

The JDK installation is integrated with the alternatives framework. After installation, the alternatives framework is updated to reflect the binaries from the recently installed JDK. Java commands such as java , javac , javadoc , and javap can be called from the command line.

Using the java -version command, users can confirm the default (recently installed) JDK version.

In addition, users can check which specific RPM package provides the .java files:

Installation of the JRE on Linux from Archive Binaries and RPM Packages

You can install the Java Runtime Environment (JRE) on a Linux platform from archive binary files or from RPM packages.

Use one of the following processes to install JRE:

From archive binaries ( .tar.gz ): This allows you to install a private version of the JRE for the current user into any location, without affecting other JRE installations. However, it may involve manual steps to get some of the features to work. See the following table for the options available for downloading and installing the JRE from archive binaries.

From RPM packages ( .tar.gz ): This allows you to perform a systemwide installation of the JRE for all users using root access. RPM-based Linux platforms are based on Red Hat and SuSE. See the following table for the options available for downloading and installing the JRE from RPM packages.

When you download and install the Java Development Kit (JDK), the associated JRE is also installed.

The following table lists the options and instructions for downloading and installing the JRE on a Linux platform.

Download File Instructions Architecture Who Can Install
jre- 10 . interim.update.patch _linux-x64_bin.tar.gz Installing the 64-Bit JRE 10 on Linux Platforms 64-bit Anyone
jre- 10 . interim.update.patch _linux-x64_bin.rpm Installing the 64-Bit JRE 10 on RPM-Based Linux Platforms 64-bit Anyone

Installing the 64-Bit JRE 10 on Linux Platforms

You can install JRE 10 on a 64-bit Linux platform from an archive binary file ( .tar.gz ).

  1. Download the file, jre- 10 . interim.update.patch _linux-x64_bin.tar.gz .

Before downloading a file, you must accept the license agreement. The archive binary can be installed by anyone (not only root users) in any location that you can write to.

The .tar.gz archive file (also called a tarball) is a file that can be simultaneously uncompressed and extracted in one step.

$ tar zxvf jre- 10 . interim.update.patch _linux-x64_bin.tar.gz

The Java Development Kit files are installed in a directory called jre- 10 . interim.update.patch .

Installing the 64-Bit JRE 10 on RPM-Based Linux Platforms

You can install JRE 10 on 64-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file ( .rpm ) in the system location.

  1. Download the file, jre- 10 . interim.update.patch _linux-x64_bin.rpm .

Before you download a file, you must accept the license agreement.

$ rpm -e package_name

$ rpm -ivh jre- 10 . interim.update.patch _linux-x64_bin.rpm

Upgrade a package using the following command:

Источник

7 JRE Installation for Linux Platforms

This page describes JRE for Linux system requirements and gives installation instructions for several JRE-Linux combinations.

This page contains these topics:

See «JDK 8 and JRE 8 Installation Start Here» for general information about installing JDK 8 and JRE 8.

For information on enhancements to JDK 8 that relate to the installer, see «Installer Enhancements in JDK 8».

System Requirements

See http://www.oracle.com/technetwork/java/javase/certconfig-2095354.html for information about supported platforms, operating systems, and browsers.

On a 64-bit system, you can download either the 64-bit or the 32-bit version of the Java platform. However, if you are using a 32-bit browser and you want to use the plugin, then you need to install the 32-bit version of the Java platform. To determine which version of Firefox you are running, launch the application, and select the menu item Help -> About Mozilla Firefox. At the bottom of the window is a version string line that contains either «Linux i686» (32-bit) or «Linux x86_64» (64-bit). To setup the Java plugin, see «Manual Installation and Registration of Java Plugin for Linux».

JRE 8 Installation Instructions

This topic contains these topics:

Installation Instruction Notation and Files

For instructions containing the notation version , substitute the appropriate JRE update version number. For example, if you are installing update JRE 8 update release 2, the following string representing the name of the bundle:

Note that, as in the preceding example, the version number is sometimes preceded with the letter u , for example, 8u2 , and sometimes it is preceded with an underbar, for example, jre1.8.0_02 .

The following table lists the options and instructions for downloading the JRE 8 release for a Linux platform.

Download File and Instructions Architecture Who Can Install
jre-8u version -linux-x64.tar.gz
«Installation of the 64-bit JRE on Linux Platforms»
64-bit anyone
j re-8u version -linux-i586.tar.gz
«Installation of the 32-bit JRE on Linux Platforms»
32-bit anyone
jre-8u version -linux-x64.rpm
«Installation of the 64-bit JRE on RPM-based Linux Platforms»
64-bit RPM-based Linux root
jre-8u version -linux-i586.rpm
«Installation of the 32-bit JRE on RPM-based Linux Platforms»
32-bit RPM-based Linux root

JDK 7u6 and later releases include JavaFX SDK (version 2.2 or later). The JavaFX SDK and Runtime are installed and integrated into the standard JDK directory structure.

Installation of the 64-bit JRE on Linux Platforms

This procedure installs the Java Runtime Environment (JRE) for 64-bit Linux, using an archive binary file ( .tar.gz ).

These instructions use the following file:

Download the file.

Before the file can be downloaded, you must accept the license agreement. The archive binary can be installed by anyone (not only root users), in any location that you can write to. However, only the root user can install the JDK into the system location.

Change directory to the location where you would like the JDK to be installed, then move the .tar.gz archive binary to the current directory.

Unpack the tarball and install the JRE.

The Java Development Kit files are installed in a directory called jdk1.8.0_ version in the current directory.

Delete the .tar.gz file if you want to save disk space.

Installation of the 64-bit JRE on RPM-based Linux Platforms

This procedure installs the Java Runtime Environment (JRE) for 64-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file ( .rpm ) in the system location. You must be root to perform this installation.

These instructions use the following file:

Download the file.

Before the file can be downloaded, you must accept the license agreement.

Become root by running su and entering the super-user password.

Uninstall any earlier installations of the JDK packages.

Install the package.

To upgrade a package:

Delete the .rpm file if you want to save disk space.

Exit the root shell.

There is no need to reboot.

Installation of the 32-bit JRE on Linux Platforms

This procedure installs the Java Runtime Environment (JRE) for 32-bit Linux, using an archive binary file ( .tar.gz ).

These instructions use the following file:

Download the file.

Before the file can be downloaded, you must accept the license agreement. The archive binary can be installed by anyone (not only root users), in any location that you can write to. However, only the root user can install the JRE into the system location.

Change directory to the location where you would like the JRE to be installed, then move the .tar.gz archive binary to the current directory.

Unpack the tarball and install the JRE.

The JRE files are installed in a directory called jre1.8.0_ version in the current directory.

Delete the .tar.gz file if you want to save disk space.

Installation of the 32-bit JRE on RPM-based Linux Platforms

This procedure installs the Java Runtime Environment (JRE) for 32-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file ( .rpm ) in the system location. You must be root to perform this installation.

These instructions use the following file:

Download the file.

Before the file can be downloaded, you must accept the license agreement.

Become root by running su and entering the super-user password.

Uninstall any earlier installations of the JRE packages.

Install the package.

To upgrade a package:

Exit the root shell.

There is no need to reboot.

Delete the .rpm file if you want to save disk space.

Installation of Public Key on RPM-based Linux Platforms

Since JDK version 8, the JRE RPMs are signed with OL keys. Installation of these RPMs on Linux distributions other than OL gives a warning message indicating that security validation of the package fails. This indicates that the public key used to sign this RPM needs to be installed in the system. A sample warning message and the public key installation steps are as follows:

Sample Warning Message
Installation Steps

Download the key file from https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 using the following command:

Install the key using the following command:

sudo rpm —import RPM-GPG-KEY-oracle-ol7

Public key installation needs to be done only once. The key installation is persistent across reboots.

General Installation Notes

This topic describes general installation topics.

Root Access

Installing the software automatically creates a directory called jre1.8.0_ version . Note that if you choose to install the Java SE Runtime Environment into system-wide location such as /usr/jre , you must first become root to gain the necessary permissions. If you do not have root access, simply install the Java SE Runtime Environment into your home directory, or a subdirectory that you have permission to write to.

Overwriting Files

If you install the software in a directory that contains a subdirectory named jre 1.8.0_ version , the new software overwrites files of the same name in that jre 1.8.0_ version directory. Rename the old directory if it contains files you want to keep.

System Preferences

By default, the installation script configures the system such that the backing store for system preferences is created inside the JRE’s installation directory. If the JRE is installed on a network-mounted drive, it and the system preferences can be exported for sharing with Java runtime environments on other machines.

Источник

Читайте также:  Windows media player для windows server 2012
Оцените статью