First, Three technical architectures for Java :
java EE : Java Platform Enterprise Edition, the development of applications in the corporate environment, mainly for the development of Web programs;
Javase : Java Platform Standard Edition, the completion of desktop application development, is the basis of the other two;
Javame : Java Platform Micro Edition, the development of electronic consumer products and embedded devices, such as mobile phone programs;
II. JDK and JRE1,jdk:java Development Kit,java Development and operating environment, Java development tools and JRE. 2,jre:java Runtime Environment,java program run environment, Java run the required class library +JVM (Java Virtual machine).Third,Configuring environment Variables
Let the Java Jdk\bin Directory tool, can run in any directory, because the tool is located in the directory to tell the system, when the use of the tool, the system to help us find the specified directory.
Configuration of environment variables:
JDK1.6 Environment Variables java_home :C:\Java\jdk1.6.0 Path :%java_home%\bin Classpath: .; %java_hoem%\lib JDK1.7 and JDK1.8 environment variables java_home :C:\Java\jdk1.7.0 path:%java_home%\bin (Note that the original path of the variable value at the end of there is no ; number, if not, first enter; number and then enter the above code) Classpath:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (Note that there is a point in the front) point '. ' Represents the current directory , which is the directory you are in when compiling or executing the program.
Semicolon '; ' is a delimiter , used to separate different paths , here are two semicolons '; ' is separated into three paths.
Iv. what does the Javac command and the java command do?
you know that Java is divided into two parts: one is compile, one is run.
javac: is responsible for the compilation of the part, when the execution of Javac, will start the Java compiler program. Compiles a. java file with the specified extension . Generates bytecode files that the JVM can recognize. This is the class file, which is Java's running program.
java: The part that is responsible for running. The JVM is started. loads the class library that is required by the runtime and executes it on a class file .
a file to be executed must have a starting point for execution , and this starting point is the main function .
Java Overview of Javase Learning Notes (i)