Update java runtime settings on windows

See JDK 7 and JRE 7 Installation Guide for general information about installing JDK 7 and JRE 7.

Bạn đang xem: Update java runtime settings on windows

The following topics are covered:

Installation Instructions Running the JDK Installer Java Start Menu Installation Troubleshooting

System Requirements

See qplay.vn JRE 7 and JDK 7 Certified System Configurations for information about supported platforms, operating systems, và browsers.

See Windows System Requirements for JDK và JRE for minimum processor, disk space, and memory requirements.


Installation Instructions Notation

For any text in this document that contains the following notation, you must substitute the appropriate update version number:

For example, if you were downloading the JDK installer for 32-bit systems for update 1.7.0_01, the tệp tin name: jdk-7-windows-i586.exe pháo would become jdk-7u1-windows-i586.exe pháo.

Similarly, if you were downloading the JDK installer for 64-bit systems for update 1.7.0_01, the tệp tin name jdk-7-windows-x64.exe pháo would become jdk-7u1-windows-x64.exe cộ.

Installation Instructions

In this procedure, you will run the self-installing executable file lớn unpachồng và install the JDK. As part of the JDK, this installation includes an option lớn include the public Java Runtime Environment. (The JDK also contains a private JRE for use only by its tools; see Private Versus Public JRE for more information.)

Install the JDK by doing the following:

Running the JDK Installer

Downloading the Installer

If you save sầu the self-installing executable file to lớn disk without running it from the download page at the web site, note that its byte size provided on the tải về page. After the tải về has completed, verify that you have downloaded the full, uncorrupted software tệp tin.

Running the JDK Installer

You must have sầu administrative permissions in order to install the JDK on Microsoft Windows.

The file jdk-7-windows-i586-i.exe is the JDK installer for 32-bit systems. The tệp tin jdk-7-windows-x64.exe is the JDK installer for 64-bit systems. If you downloaded either file instead of running it directly from the web site, double-cliông xã the installer"s ibé. Then, follow the instructions the installer provides. The installer may ask you to lớn reboot your computer. When finished with the installation, you can delete the downloaded file to recover disk space.

Note: Installers for JDK 7u6 & later install the JavaFX SDK & integrate it inkhổng lồ the JDK installation directory. Installers for JDK 7u2 lớn 7u5 install the JDK first, then start the JavaFX SDK installer, which installs JavaFX SDK in the mặc định directory C:Program Filesqplay.vnJavaFX 2.0 SDK or C:Program Files (x86)qplay.vnJavaFX 2.0 SDK on 64-bit operating systems. If you want to lớn install the JavaFX SDK (version 2.0.2) with JDK 7u1 or earlier, see Installing JavaFX for more information.

Java Start Menu

Starting with JDK 7u40 release, Java menu items are added khổng lồ the Windows Start Menu to lớn provide easy access lớn Java resources.

During JDK install, a Java Development Kit thư mục is created in the Windows Start Menu, which contains the following items:

Reference Documentation: opens the Online API documentation web page. Java Mission Control: opens the Java Mission Control profiling và diagnostics tools suite.

Xem thêm: Cách Sử Dụng Live Photo Thành Video Trên Ios 13, Hướng Dẫn Chụp Ảnh Live, Ảnh Động Trên Iphone

During JDK install & uninstall processes, the appropriate start thực đơn items are updated to be associated with the lademo JDK version on the system.

Note: Java Mission Control is a commercial feature available lớn users with a Java SE Advanced license.

Installing the JDK Silently

You can perform a silent, non-interactive sầu, JDK installation by using the command-line arguments. The following table lists example installation scenartiện ích ios and the commands required to lớn persize them:

Installation Scenario Commvà
Install the public JRE in silent mode

jdk.exe pháo /s

Install development tools và source code in silent mode but not the public JRE jdk.exe /s ADDLOCAL="ToolsFeature,SourceFeature"
Install development tools, source code, & the public JRE in silent mode jdk.exe pháo /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature"
Install the public JRE in the specified directory C: est in silent mode jdk.exe cộ /s /INSTALLDIRPUBJRE=C: est

Updating the PATH Environment Variable (Optional)

You can run the JDK without setting the PATH environment variable, or you can optionally mix it so that you can conveniently run the JDK executable files (javac.exe, java.exe cộ, javadoc.exe pháo, and so forth) from any directory without having lớn type the full path of the comm&. If you do not set the PATH variable, you need lớn specify the full path to lớn the executable tệp tin every time you run it, such as:

C:> "C:Program FilesJavajdk1.7.0injavac" MyClass.javaIt is useful to mix the PATH variable permanently so it will persist after rebooting.

To mix the PATH variable permanently, add the full path of the jdk1.7.0in directory to lớn the PATH variable. Typically, this full path looks something like C:Program FilesJavajdk1.7.0in. Set the PATH variable as follows on Microsoft Windows:

Cliông chồng Start, then Control Panel, then System.

Click Advanced, then Environment Variables.

Add the location of the bin folder of the JDK installation for the PATH variable in System Variables. The following is a typical value for the PATH variable:

C:WINDOWSsystem32;C:WINDOWS;C:Program FilesJavajdk1.7.0in Note:

The PATH environment variable is a series of directories separated by semicolons (;) và is not case-sensitive sầu. Microsoft Windows looks for programs in the PATH directories in order, from left khổng lồ right.You should only have sầu one bin directory for a JDK in the path at a time. Those following the first instance are ignored.If you are not sure where to add the path, add it khổng lồ the right of the value of the PATH variable.The new path takes effect in each new command window you open after setting the PATH variable.

Starting lớn Use the JDK

If you are new to lớn developing & running programs in the Java programming language, see The Java Tutorial online for some guidance. Note especially the tutorial trails under the heading Trails Covering the Basics.

You can also download the JDK documentation from the Java SE Downloads page.

Uninstalling the JDK

If you should ever want khổng lồ uninstall the JDK, use the "Add/Remove Programs" utility in the Microsoft Windows Control Panel.

Xem thêm: Giải Toán Trên Mạng Lớp 2 Phần 1, Đề Thi Violympic Giải Toán Trên Mạng Lớp 2 Vòng 4

Uninstalling the JDK in Silent Mode

You can use the comm& line for uninstalling the JDK.

Chuyên mục: Công nghệ