One of the beginners of j2-based technology-the development process of j2-based programs
Source: Internet
Author: User
Before developing the agent program, you must first understand the development process of the agent program. Only after you are familiar with the development process can you understand how to develop the agent program. Because of the running environment and platform-specific differences, the development process of J2SE is different from that of J2SE, which is much more troublesome than that of J2SE.
The general process of the development of J2EE is as follows:
1. Compile the Java source code and write the code in the editor. You can write the code in the general text editor or the integrated development tool. This is exactly the same as J2SE.
2. Compile the Java source code. Generally, you can use tools to compile the source code. In actual development, you rarely perform operations under the command line. Therefore, beginners do not have to understand how to compile the source code under the command line.
3. Pre-review compiled class files. The purpose of this process is to perform pre-check and review before running, reduce the burden on running and increase the program running speed. A pre-approval command is provided in the J2EE Development Kit. During compilation, the general development tool automatically performs this operation.
4. Run the pre-reviewed class file in the simulator to view the effect and debug the file. If you need to modify the file, return the first step again. Generally, development tools include simulators. You only need to "run" the program, and the development tool automatically starts the simulator to run.
5. If the program runs in the simulator and there is no problem, you can confuse and package the program and transfer it to your mobile phone. If the app passes the test on your phone, you can publish the app. If there is still a problem in the app, the first step is returned.
It should be noted that, due to bugs in simulators and mobile phones, simulators and mobile phones are not exactly the same. All programs must be tested on real mobile phones before release.
The development process of J2's seems complicated, but in actual development, most of the work is done by development tools, so it is not very troublesome.
L about JAD and JAR
There are two types of files last released for the development of j2-based systems:
The JAD-Java application description file is used to describe the application information, such as the file size.
JAR -- programs and resource files, including all class files, image files, sounds, and other resource files. These two files are used when the program is released. That is, the files that are finally distributed to users. Some mobile phones only need jar files for release.
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.