1、java.exe:
Run Java program
2、javac.exe:
Compile to generate the. Class file.
32.16javaw.exe:
In contrast to the Java command, a console window is displayed and maintained when you run the Java command,
Information in the program can be output in the console through system. Out, And javaw,
The Console appears at the beginning. After the main program is called, the console disappears;
Java W is mostly used to run GUI programs
4. Java archive (jar) Utility
The zip format is also used in the jar (Java archive) file format of Java 1.1. This file format is used to merge a series of files into a single compressed file, just like zip. However, the JAR file is cross-platform like anything else in Java, so you don't have to worry about specific platform issues. In addition to audio and image files, you can also include class files.
Jar files are particularly useful when Internet applications are involved. Before jar files, the Web browser must repeatedly request the Web server to download all the files that constitute an "applet. In addition, each file is not compressed. However, after all these files are merged into a jar file, you only need to send a request to the remote server. At the same time, because of the compression technology, you can get all the data in a shorter time. In addition, you can add digital signatures to each entry (entry) in the jar file (For details, refer to the Java User documentation ).
A jar file consists of a series of files in zip compression format, and a "detail form" to describe all these files (you can create your own detail form file; otherwise, jar program will work for us ). In the online user documentation, you can find more information with the jar detail sheet (the English word of the detail sheet is "Manifest ").
The jar utility has been provided with Sun's JDK and can automatically compress the file according to our selection. Call it on the command line:
Jar [Option] Description [detail form] Input File
"Options" are represented by a series of letters (you do not need to enter a font size or any other indicator ). As follows:
C. Create a new or empty compression File
T List Directory tables
X decompress all files
X file decompress the specified file
F indicates "I am going to provide you with a file name ". If this parameter is omitted, Jar assumes that its input comes from the standard input, or when it creates a file, the output enters the standard output.
M indicates that the first parameter will be the name of the detail table File Created by the user.
V generates detailed output and detailed descriptions of the jar work.
O only save files; Do not compress files (used to create a jar file so that we can put it in our own class path)
M does not automatically generate the Details table File
If a sub-directory is included in the file to enter the JAR file, the sub-directory will be automatically added, including all its own sub-directories, and so on. The path information is also retained.
Below are some typical methods to call jar:
Jar CF myjarfile. jar *. Class
It is used to create a jar file named myjarfile. jar, which contains all class files in the current directory and automatically generated detail table files.
Jar CMF myjarfile. Jar mymanifestfile. MF *. Class
Similar to external, but a user-created detail table file named mymanifestfile. mf is added.
Jar TF myjarfile. Jar
Generate a directory table for all files in myjarfile. jar.
Jar tvf myjarfile. Jar
Add the "verbose" (detailed) flag to provide more detailed information about the files in myjarfile. jar.
Jar CVF MyApp. Jar audio classes Image
Assume that audio, classes, and image are subdirectories. In this way, all subdirectories are merged into the MyApp. jar file. It also includes the "verbose" flag, which can provide more detailed information when the jar program is working.
If you use the O option to create a jar file, the file can be placed in its own classpath:
Classpath = "lib1.jar; lib2.jar ;"
Java can search for target class files in lib1.jar and lib2.jar.
Jar tools are not as rich as ZIP tools. For example, you cannot add or update files in a ready-made JAR file. You can only create a new JAR file from the beginning. In addition, files cannot be moved into a jar file and deleted after being moved. However, Jar files created on one platform can be read by the jar tool on any other platform without hindrance (this problem may sometimes affect the zip tool ).
As you can see in Chapter 13th, we also use jar to package Java Beans.
5. javadoc is a technology provided by Sun. It extracts class, method, and member comments from the program source code to form an API help document supporting the source code. That is to say, as long as the program is compiled with a specific set of labels for annotation, after the program is compiled, through javadoc can form the program development documentation at the same time.
JBuilder provides multiple functions that support javadoc. You can create a javadoc node in the tree of the Project pane by using the wizard, and create the javadoc document of the project by naming the node menu, the javadoc labels can be entered through induction to check whether the comments match the source code.
This article describes how to use the javadoc tag in the source code to write comments and create a javadoc document.
Although detailed design is an important stage of software projects, it is often not implemented in practice. It is not that this phase is not important, but it is very difficult to implement it, because the software demand is a natural mobile disease patient. After the detailed design, the demand is already quite different from the original version, with a huge cost, the elaborate detailed design has become yellow yesterday.
Javadoc comments are composed of javadoc labels and descriptive texts. You can add comments to classes and interfaces, or add comments to elements in constructors, Value domains, methods, and other classes.
You can use a code template to quickly enter javadoc comments, or you can use the javadoc dialog box to input javadoc comments in a visualized manner. In addition, JBuilder provides a variety of javadoc auxiliary functions, such as javadocinsight-induced input, conflict reporting and correction, and special todo labels.
After writing comments in the Java file, you can immediately switch to the corresponding javadoc document in the doc view page code in the content pane, however, the documents generated on the doc view page are incomplete "templates ". First, there is no navigation tree, and second, no links are generated to associate content through @ see or @ link. So you can regard the javadoc document on the doc view page as a preview of the final version of javadoc.
This article describes the javadoc labels and explains how to edit javadoc annotations in JBuilder. You should try to use javadocinsight, classinsight and parameterinsight to quickly and correctly compile javadoc annotations. In addition, you should make common annotations into templates to facilitate quick entry.
The annotation conflict report and recovery functions provided by JBuilder allow you to easily solve the annotation conflict problem and avoid monotonous manual adjustment operations.
JBuilder also allows you to customize javadoc labels to meet Personalized Requirements. In addition, the custom todo tag of JBuilder allows you to mark the desired location anytime and anywhere, so that you do not miss out on your work.