Java-1-java development environment Installation and configuration

Source: Internet
Author: User

1, download and install jdk1.8u45

Http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

General installation directory automatically created in: C:\Program files\java\jdk1.8.0_45

2, configure environment variables: generally choose to configure "system variables", do not choose to configure "User variables";

My Computer "Properties" advanced "environment variable" system variable-add "content as follows:

"Variable name": Java_home "Variable value": C:\Program files\java\jdk1.8.0_45

"Variable name": The Path frontend increment-"Variable value":%java_home%\bin;%java_home%\jre\bin;

"Variable name": CLASSPATH "Variable value":%java_home%\lib\dt.jar;%java_home%\lib\toos.jar;

3,editplus

Tools, configure user Tools tool, user tools

Group1 "renamed to (added)"

Group2 "renamed to (added)"

Problem:

1,cmd the Java command or the Javac command cannot be executed?

The environment variable should be configured correctly;

Restart cmd;

2,editplus error message: Cannot create a process?

Version issue, change command Java to: C:\Program Files\java\jdk1.8.0_45\jre\bin\java.exe

3, did not follow the feeling to go,

Two listings of D:\ and D:\4JAVA\08EditPlus_Code\01test1code
Two Java files Helloworld.java and Javaprogramenter.java files are stored
Cmd:
The. class file generated by the javac is stored in the directory where the Java program resides;
Java executes the results of Java programs in the D:\4JAVA\08EditPlus_Code\01test1code directory

EditPlus:
Javac generated. class files are stored in the D:\4JAVA\08EditPlus_Code\01test1code directory
Java executes the results of Java programs in the D:\4JAVA\08EditPlus_Code\01test1code directory

Ask for answers?????

Answer:

Cmd:

EditPlus:

Compile command javac problem solving, find Java file, right-click "Open Mode" Select EditPlus Open, need to run that Java file on the side, to ensure that the operation is the desired Java file, The generated. class file is naturally in the current directory, which is the same directory as the Java file;

Parsing commands Java is the same;

Java-1-java development environment Installation and configuration

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.