Configuration of Java Environment variables

Source: Internet
Author: User

Java Knowledge Introduction and environment variable configuration problem

One, in learning a language, not only need to master its grammatical structure, development platform and environment is also very important. Download and install the compressed package before starting Java learning, and download and install the development platform environment. Based on this, the following article expands:

1. Download and install the JDK package, then perform the quick and correct installation operation. (Specific installation steps on the Internet a lot, not repeat.) )

2, the installation is successful, it is necessary to configure the environment variables, which is a bit special, especially for C language, C # language development students should pay attention to.

The environment variable configuration steps are as follows:

Open: Computer properties, advanced-Environment Variables tab, system variables, select the new-> in the system variable.:

1> variable Name: Java_home variable Value: Installation path for JDK

2> Variable Name: CLASSPATH

Variable value:.; % Java_home%\bin\td.jar; % Java_home%\bin\tools.jar;

Note: 1,.; Represents a file under the local,% java_home%\bin\td.jar path.

3> Modify the path path in the system environment:% Java_home%\bin;

3. Open the Command window with command cmd to test whether the configuration is successful.

1> Enter the destination directory path. such as:->CD E:java\demo

2> compile the Java file. such as:->javac Helloword.java

3> executes the generated class file. such as:->java Helloword

4, the test is successful, the configuration is successful.

Second, the following is the use of two development tools: (Two kinds of tools can be any one, we recommend the use of the second.) )

1. EditPlus Development Environment

1> Download the EditPlus package and install it.

2> run after successful installation, open tools, tools---User tools The specific configuration is as follows:

① Modifying group names: compiling Java programs

② Add a new program named: JAVAC.

Modify Menu Text: JAVA

Command: Installation path for Javac.exe

Parameters: Select File name

Initial directory: File directory

Action: Capturing output

③ Add a new program, named: JAVA.

Command: Installation path for Java.exe

Parameters: Select the file name (does not include an extension). Special attention

Initial directory: File directory

Action: Capturing output

④ write the test code, open the tool->javac compile (or shortcut key ctal+1), Java Execution (or shortcut key ctal+2), output printing results, test success.

2. Eclipse Development Environment

1> download Eclipse and install it successfully.

2> Open: Window, preferences->java-> installed jre-> add JDK (generally default already done)->ok

Color and font---edit (Modify font and color format), general, appearance, preferences, windows

Configuration of Java Environment variables

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.