This week learned to deploy applications, mainly Java program Packaging: After the program is compiled, the programmer will compress the. class file into a. jar file, the GUI interface program can directly double-click the icon to run.
When the project does not reference an external jar package, it is exported directly.
Sealing the Java Package (Seal) ensures that no other classes are added to it. If you use the classes, methods, and fields that the package is visible in your code, you may want to seal the package. If not sealed, other classes are likely to be placed in the package, which in turn accesses the features visible to the package.
Application users typically expect to be able to configure the application themselves and be able to save it so that they can be read when the application is run again later.
A property map is a data structure that stores key/value pairs.
Attribute mappings are often used to store configuration information, which has three features:
Both the key and the value are strings;
Key/value pairs can be easily written to or read from a file;
Use a Level two table to store the default values.
The ClassLoader knows how to search for a class file until it is found on the classpath, archive file, or Web server. The same can be done with resource mechanisms for non-class files.
201671010109 "Java program contact" 16th Week Impressions