The main development tools provided by JDK are: Compiling program, explaining execution program, debugging program, applet executing program, document management program, package management program, etc.
1, the compiler: Javac.exe, the corresponding Javac command to convert the Java source program to byte code.
Javac [-Options] File.java
File.java: The source file to compile
[-options]: Optional, javac compilation options can be viewed at the command prompt by entering Javac or javac-help. When there is no option, the compiler will generate the. class file and the Java source file. Java is placed in the same folder.
2. Explain the execution program: Java.exe, the program loads the compiled class into memory and then calls the JVM to execute it
Execute a class file: Java [-Options] class [Parameters ...]
Execute a JAR file: Java [-options]-jar jarfile [parameters ...]
[Parameters ...] : Represents the parameter to be passed to the execution file. class, called "command-line arguments," and can also be used to view help information.
Java commands are case-sensitive, differ in case, and represent different files. The file suffix. class cannot be
Java Compilation Interpretation