Web Design
Mobile Internet
Brand Design
Innovative
News
Encyclopedias

Tutorial of setting up Java development environment configuration

Date:2016-08-09 Source: Shangpin China Type: website encyclopedia
Word Size: small   medium   big

JDK installation

one Website construction Installation environment requirements

Java has low requirements for computers. The following are the minimum requirements for computers based on the Windows platform. Hardware requirements: CPU P II or above, 64MB of memory, 100MB of hard disk space.

Software requirements: Windows 98/NT/2000/XP, Internet Explorer 5.0.

2. Download JDK

(1) Open the browser and enter the web address in the "Address" column //java. sun. com/javase/downloads/index. Jsp. Press Enter to open the JDK download main page of the official Java website, as shown in Figure 1-1.

 JDK download main page


(2) Click the Download button on the right side of "JDK 6 Update 14", and the page shown in Figure 1-2 will appear. Select Windows from the Platform drop-down list, Multi language from the Language drop-down list, and select
Click the Continue button in the check box of the same protocol.

 JDK download page selection platform and language


(3) Select "Java SE Development Kit 6u14 jdk-6ul4-windows-1586 Exe "to download. The size is 73 48MB.

3. Install JDK

Run jdk-6u14-windows-i586 Exe to install JDK. During installation, you can set the installation path and select components. The default installation path of the system is C: Program FilesJavajdkl 6.0_14, the default "Component Selection" is to install all.

After successful installation The directory structure of JDK is shown in Figure 1-3

 Directory structure of JDK

Configure environment variables

Since Java is platform independent, Java will not set the path or modify the registry when installing the JDK. Users need to set the environment variables themselves, but do not need to modify the registry. The environment variables set include path and java_home
And classpath.

Right click My Computer on the desktop. Select the [Properties] command in the pop-up shortcut menu. Select the [Advanced] tab in the pop-up [System Properties] dialog box, as shown in Figure 1-4.


 System Properties dialog box


Click Environment Variable. Open the Environment Variable dialog box, as shown in Figure 1-5.

 Environment Variable dialog box

1. Edit the user variable Path

Path is a variable that Windows has defined. Find the "Path" in the [Variable] column of the [User Variable] list box, click the [Edit] button, and add "; C: Program FilesJavajdkl. 6.0_14bin" to the [Variable Value] text box in the [Edit User Variable] dialog box, as shown in Figure 1-6.

 Edit User Variable Path


Add the path of the JDK compiler Javac.exe and interpreter Java.exe to Path.

2. Create a new environment variable java_home

Click the [New] button in the [User Variable] option area to create a java_home environment variable, and set the [Variable Value] to "C: Program FilesJavajdkl. 6.0_14bin", as shown in Figure 1-7.

 New environment variable java_home


Click OK and the configuration is successful.

3. Create a classpath

Classpath is the path of the JDK package (class library). Click New in the User Variable option area to create an environment address classpath, as shown in Figure 1-8.

 New classpath
The "." in the classpath variable value indicates that JDK can be executed in any current directory. It is usually written at the front as the first path for the system to find classes.

After setting the environment variables, click the [Start] button on the Windows taskbar and select the [Run] command. In the pop-up running dialog box, enter the command "cmd" into the DOS window. Enter the command "Java" or "Javac" in the DOS window. Press Enter. If the usage parameter prompt message appears, it indicates that the Java JDK is installed correctly. If there is a problem, check whether the path setting is correct.


Please contact our consultant

+86 10-60259772

Please provide your contact number. The project manager of shangpin China will contact you as soon as possible.