Java Platform, Standard Edition Installation Guide
Total Page:16
File Type:pdf, Size:1020Kb
Java Platform, Standard Edition Installation Guide Release 10 E91100-01 March 2018 Java Platform, Standard Edition Installation Guide, Release 10 E91100-01 Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency- specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle. Contents Preface Audience vi Documentation Accessibility vi Related Documents vi Conventions vi 1 Overview of JDK 10 and JRE 10 Installation 2 Version-String Format 3 Installation of JDK and JRE on Oracle Solaris System Requirements for Installing the JDK and JRE on Oracle Solaris 3-1 JDK and JRE Installation Instruction Notation for Oracle Solaris 3-1 Installation of JDK on Oracle Solaris from Archive Binaries 3-2 Installing JDK on Oracle Solaris 11 from IPS Packages 3-3 Installing the JRE on Oracle Solaris from Archive Binaries 3-4 Installing the JRE on Oracle Solaris 11 from IPS Packages 3-4 Specifying the Default Java Platform 3-5 4 Installation of Server JRE 10 on Oracle Solaris System Requirements for Installing Server JRE 10 on Oracle Solaris 4-1 Server JRE 10 Installation Instruction Notation for Oracle Solaris 4-1 Installing Server JRE 10 on Oracle Solaris 4-1 5 Installation of the JDK and JRE on Linux Platforms General Notes About Installing the JDK and JRE on Linux Platforms 5-1 System Requirements for Installing JDK and JRE on Linux Platforms 5-2 JDK and JRE Installation Instruction Notation for Linux Platforms 5-2 iii Installation of the JDK on Linux from Archive Binaries and RPM Packages 5-2 Installing the 64-Bit JDK 10 on Linux Platforms 5-3 Installing the 64-Bit JDK on RPM-Based Linux Platforms 5-3 Installation of the JRE on Linux from Archive Binaries and RPM Packages 5-4 Installing the 64-Bit JRE 10 on Linux Platforms 5-5 Installing the 64-Bit JRE 10 on RPM-Based Linux Platforms 5-5 6 Installation of Server JRE 10 on Linux Server JRE 10 System Requirements on Linux 6-1 Server JRE 10 Installation Instruction Notation for Linux 6-1 Installing Server JRE 10 on Linux Platforms 6-1 7 Manual Installation and Registration of the Java Plug-in on Linux Java Plug-in Installation 7-1 Installing the Java Plug-in on Linux 7-2 8 Installation of the JDK and the JRE on macOS System Requirements for Installing the JDK and JRE on macOS 8-1 Determining the JRE Version Installed on macOS 8-2 Determining the Default JDK Version on macOS 8-2 Installing the JDK on macOS 8-3 Installing the JRE on macOS 8-3 Uninstalling the JDK on macOS 8-4 Uninstalling the JRE on macOS 8-4 Installation FAQ on macOS Platform 8-5 Notes for Users of macOS That Include the Apple Java 6 Plug-in 8-7 9 Installation of the JDK and the JRE on Microsoft Windows Platforms System Requirements for Installing the JDK and the JRE on 64-Bit Windows Platform 9-1 JDK and JRE Installation Instruction Notation for Windows 9-2 JDK Installation Instructions for Windows 9-3 Downloading the JDK Installer 9-3 Running the JDK Installer 9-3 Installing the JDK Silently 9-4 Setting the PATH Environment Variable 9-4 JRE Installation Instructions for Windows 9-5 JRE Proxy Settings and Authentication 9-5 iv Downloading the JRE Installer 9-6 Running the JRE Installer 9-6 Windows Registry Settings 9-7 Beginning to Use the JDK 9-8 Java Start Menu Installed by JDK 9-8 Java Start Menu Installed by JRE 9-9 Java Web Start 9-9 Java Plug-in 9-10 Option to Disable the JRE Out-of-Date Warning 9-11 Uninstalling the JDK on Windows 9-11 Uninstalling the JRE on Windows 9-11 JDK Installation Troubleshooting 9-12 Windows Online Installation and Java Update FAQ 9-13 10 Installed Directory Structure of JDK and JRE Development Files and Directories 10-1 11 JRE Installation Options for Windows System Administrators and Vendors Introduction to JRE Installation Options 11-1 JRE Command-Line Installation 11-1 JRE Static Installation 11-2 Creating a Log File 11-2 12 Installation of the JRE with a Configuration File Using a Configuration File 12-1 Configuration File Options 12-1 Sample Configuration File 12-4 System Runtime Configuration File 12-5 v Preface Preface Java Platform, Standard Edition Installation Guide describes how to install the Java Development Kit (JDK), Java Runtime Environment (JRE), and Server JRE on Oracle Solaris, Linux, Microsoft Windows, and macOS computers. Audience This document is intended for users who are installing any variant of the Java SE platform. Documentation Accessibility For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup? ctx=acc&id=docacc. Access to Oracle Support Oracle customers that have purchased support have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/ lookup?ctx=acc&id=info or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs if you are hearing impaired. Related Documents See JDK 10 Documentation. Conventions The following text conventions are used in this document: Convention Meaning boldface Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary. italic Italic type indicates book titles, emphasis, or placeholder variables for which you supply particular values. monospace Monospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter. vi 1 Overview of JDK 10 and JRE 10 Installation The type of installation depends on your requirement and the platform that you choose to install. Depending on the requirement, download and install JDK or JRE according to the information provided in Table 1–1: Table 1-1 Installation Requirements and Related Tasks Requirement Tasks Run Java programs but Download and install the JRE for your platform not develop them Develop Java applications Download and install the Java Development Kit (JDK) for your platform. The JDK includes the JRE, so you do not have to download both separately. Use JRE on a server but Download the Java SE Server JRE for your platform do not want the ability to run rich internet applications (RIAs) Version-String Format To understand the version-string scheme that is used to distinguish various JDK and JRE releases, see Version-String Format. Installation JDK, JRE, and Server JRE can be installed on the following platforms: • Oracle Solaris • Microsoft Windows • Linux • macOS You can download JDK and JRE from Java SE Development Kit Downloads page.