Jre Java environment configuration and installation -jdk

java jdk directly under can run jdk jre that comes with it you will only need to download the jdk environment will be able to configure the look

General editor java is required myeclipse also can use Notepad or TXT file with notepad ++

jdk easily downloaded from the Internet can

This is my first Java class notes, 5 sets are in front of video feel just a bunch of nonsense talk jdk, but I think the java language need only look at the jdk environment can run on less trouble

jdk: What meaning is not so important, only that it is a language of java runtime environment, you can run java jdk there can be, in the end how to Sike jdk is what does not make sense, would be used on the line, he can have run the java

Like saying 1 + 1 = 2 is mathematics, so it is necessary to know that 1 + 1 equals 2 Why is it? You need to know which bastard mathematics is invented it? Even if one knows what will happen? It does not make sense, for the same jdk 

 

jdk installation package can be downloaded directly from the computer butler, Baidu many of which are free, like what under which

jdk jre also comes installed in the same folder in java 

 

The installation is complete so get two folders, then the following is the final configuration jdk environment of only three steps to   

1. Create a new variable name JAVA_HOME
variable value D: \ Program Files \ the Java \ jdk1.8.0_191 (your jdk installation address, the only change is that you install this path, fixed without changing the value of the other two variables)

2. Configure PATH

Variable Name Path

Variable Value % JAVA_HOME% \ bin; (* path of java value must be placed at the forefront , otherwise they can not find jvr)

3. New CALSSPATH

Variable name CLASSPATH

Variable value ;.% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools.jar; (Note that the foremost " ;. "
Because WINDOWS default search order is to search the current directory, and then search system directory, and then search the PATH environment variable is set)

 ------------- 3-step configuration is complete, the idea is a system variable Well, not user variables ---------

 

Configured to start a test run java open cmd window, enter the following instructions for configuring javac appears in the window + R Success

jdk configuration to this is over, ready to run the java language you need

After you can own test, cd find yourself writing java files in the root directory, enter the command: javac xxx.java    xxx is the file name and then generate the class java class

Then opened using java class name can be a command such as: java XXX   output is the result of the execution of the java code

Note: Class names are case sensitive oh

Guess you like

Origin www.cnblogs.com/longxinyv/p/11772961.html