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.

LAbout JadAnd 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.

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.