Home  >  Article  >  Java  >  Graphical tutorial on Java development environment configuration under win7 64bit

Graphical tutorial on Java development environment configuration under win7 64bit

黄舟
黄舟Original
2017-08-13 09:33:071830browse

This article mainly introduces the configuration tutorial of Java development environment under win7 64bit in detail. It has certain reference value. Interested friends can refer to

Java development environment configuration (win7- 64bit)

1. Overview

Building a Java development environment generally requires the installation of JDK and JRE at the same time. JDK: Refers to the Java Development Kit, which is necessary when developing Java programs. JDK contains a part of the public JRE. JRE: A Java Runtime Environment, used when running developed Java programs.

2. Tools used in the text

Java SE basic tool kit: official website download
(There are many versions, choose the applicable version by yourself, omit the installation process, install Then take the next step)

3. Environment variable configuration

Java environment variables involve three Noun: JAVA_HOME, path, classpath. JAVA_HOME represents the JDK installation home directory, path represents the executable file directory under the JDK, and classpath represents the directory where class files need to be found when running a java program. PATH configures the location of the JDK command file.

My Computer (right click)→Properties

Advanced System Settings→Environment Variables

The system variable does not come with the JAVA_HOME variable. You need to edit it yourself as follows: (The variable value is the path to the JDK installation)

PATH already exists in the system variable. Select PATH → Edit


##–>Enter the path of Bin at the front (use a semicolon Separate other paths)


The system’s own variables do not have CLASSPATH, you need to add



→ Use "." to represent the current path

→ Use ";" to separate
→ Enter the path of Bil (for example, my path is: C:\Program Files\Java\jdk1.8.0 _60\lib)


The configuration ends here. Remember to press OK. It will not be saved until it is confirmed.

4. Test

Open and run àcmdà and enter java/javac for verification (the effect of successful verification is as follows)




If you see this effect, congratulations on successful configuration.

5. Notes

If you use JDK version 1.5 or above, you can compile and run Java programs normally without setting the CLASSPATH environment variable.

The above is the detailed content of Graphical tutorial on Java development environment configuration under win7 64bit. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn