Java
javaTutorial
Detailed graphic and text introduction to java (jdk) environment variable configuration (XP, win7, win8)For students who are new to Java, the first thing is not to write hello world, but to set up a Java development environment and download jdk, Install , configure environment variables . These operations are configured differently in different operating systems such as xp, win7, and win8. Here are the instructions in this article Let us introduce how to configure the above different operating systems
For students who are new to Java, the first thing is not to write hello world, but to set up a Java development environment, download jdk, install it, and configure environment variables. These operations are configured differently in different operating systems such as xp, win7, and win8, so I will write about how to configure them under the above different operating systems. and 64-bit)
XP#1. Install JDK, you can
customize the installation directory and other information during the installation process , for example, we choose the installation directory as: C:\Program Files\Java\jdk1.6.0_10;2. After the installation is completed, right-click "My Computer" and click "Properties
”. Click “Advanced System Settings” and click “Environment Variables”, as shown in the figure: ##", set 3 properties, namely JAVA_HOME, PATH, CLASSPATH (it doesn't matter the case, it is best to use uppercase). If these 3 properties already exist, click "Edit", if they do not exist, click "New" (1 ).JAVA_HOME indicates the JDK installation path, which is the path you just selected during installation: C:\Program##Files\Java\jdk1.6.0_10, as shown in the figure:(2) Add under the Path item: ;%JAVA_HOME%\bin; %JAVA_HOME%\jre\bin. Note that it is separated from the previous content by a semicolon, as shown in the figure: 

##4. "Start" -> "Run", type "cmd", type the command "javac", the following screen appears , indicating that the environment variables are configured successfully. As shown in the picture:

win7
1. Install JDK, you can install it yourself Define the installation directory and other information. For example, we choose the installation directory as: C:\Program Files\Java\jdk1.6.0_21; (The red area has different numbers depending on the version). 2. After the installation is complete, right-click "Computer" and click "Properties", as shown in the figure:
##3. Click "Advanced" System Settings", click "Environment Variables", as shown in the figure: 
##4. In "System Variables", set 3 properties , JAVA_HOME, PATH, CLASSPATH (case does not matter), if it already exists, click "Edit", if it does not exist, click "New":
(1).JAVA_HOME specifies the JDK installation path, which is just now The path selected during installation is C:\Program Files\Java\jdk1.6.0_21, as shown in the figure:

##(2).Path Add: ;%JAVA_HOME%\bin; %JAVA_HOME%\jre\bin, note that they are separated by semicolons, as shown in the figure:

(3). Add in the CLASSPATH item: .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar (note the "." in front), as shown in the figure:

5. "Start" -> "Run", type "cmd", type the command "javac", the following screen will appear, explaining the environment variables Configuration successful. As shown in the picture:

##win8
#1. Install JDK, you can install it yourself Define information such as the installation directory. For example, we choose the installation directory as: C:\Program Files (x86)\Java\jdk1.7.0_40; (The red area has different numbers depending on the version). 2. After the installation is complete, right-click "My Computer"-----"Properties"-----"Advanced System Settings"------"Advanced"---- -----"Environment variables", as shown in the figure:

##3. New ( There is no need to create a new one if it already exists) System variable
JAVA_HOME, Variable value C:\Program Files (x86)\Java\jdk1.7.0_40 (This is my jdk
Installation path)

4. Find the Path system variable, edit it, and add % at the beginning of the variable value JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

5. Find the system variable CLASSPATH, if not, create a new system variable and variable value. ;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; (note the "." in front of
).
6.win+R and enter cmd, when the window comes out, enter java and press enter, javac and press enter. It will be successful when it comes out as shown

The above is the detailed content of Detailed graphic and text introduction to java (jdk) environment variable configuration (XP, win7, win8). For more information, please follow other related articles on the PHP Chinese website!
How do I use Maven or Gradle for advanced Java project management, build automation, and dependency resolution?Mar 17, 2025 pm 05:46 PMThe article discusses using Maven and Gradle for Java project management, build automation, and dependency resolution, comparing their approaches and optimization strategies.
How do I create and use custom Java libraries (JAR files) with proper versioning and dependency management?Mar 17, 2025 pm 05:45 PMThe article discusses creating and using custom Java libraries (JAR files) with proper versioning and dependency management, using tools like Maven and Gradle.
How do I implement multi-level caching in Java applications using libraries like Caffeine or Guava Cache?Mar 17, 2025 pm 05:44 PMThe article discusses implementing multi-level caching in Java using Caffeine and Guava Cache to enhance application performance. It covers setup, integration, and performance benefits, along with configuration and eviction policy management best pra
How can I use JPA (Java Persistence API) for object-relational mapping with advanced features like caching and lazy loading?Mar 17, 2025 pm 05:43 PMThe article discusses using JPA for object-relational mapping with advanced features like caching and lazy loading. It covers setup, entity mapping, and best practices for optimizing performance while highlighting potential pitfalls.[159 characters]
How does Java's classloading mechanism work, including different classloaders and their delegation models?Mar 17, 2025 pm 05:35 PMJava's classloading involves loading, linking, and initializing classes using a hierarchical system with Bootstrap, Extension, and Application classloaders. The parent delegation model ensures core classes are loaded first, affecting custom class loa


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver CS6
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.





