Java Compilation Interpretation

Source: Internet
Author: User

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

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.