Android local packaging tool-jar running without JVM

Source: Internet
Author: User

Prerequisites: there are currently four small android projects, and different channel numbers may be released for promotion, therefore, we need to develop a small packaging tool for non-technical personnel to arbitrarily specify parameters for unlimited packaging.

1. Make the packaging interface into a JFrame interface as follows:

The above contains the ant packaging script. For details, refer to the previous ant online packaging.

2. Copy all the required environments, android-sdk and jdk. These two environments are required for packaging and must be available.

3. the problem is that the tool is compiled into a jar file. If jdk or jre is installed on the machine where the tool is located, the tool runs directly. However, the tool cannot be copied to any machine, therefore, jre must be encapsulated. The following is the running script: environment \ jdk \ jre6 \ bin, where the relative path jre is located.

Start environment \ jdk \ jre6 \ bin \ javaw-jar tool. jar

For details about how to package jar files, refer

Http://www.huomo.cn/developer/article-13f0a.html

Related Article

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.