Extended universal Table of work (6)

Source: Internet
Author: User
6. Running the application

(1) Use of additional jar files

The method to run the program is the same as the first part, you can refer to the appropriate section, but because of the use of Googleapi.jar this external jar file, some of the following adjustments are required:

L Add Googleapi.jar to the operating environment (Plugin.xml)

<runtime>
<library name= "Google.jar" >
<export name= "*"/>
</library>
<library name= "Googleapi.jar" >
<export name= "*"/>
</library>
</runtime>
Because PDE uses dynamic classpath, additional classpath entries need to be added to the plugin classpath in order to compile correctly:

Ø import Googleapi.jar into the root directory of Google engineering

Ø Open Plugin.xml with Plug-in Manifest editor, click the Add Extra button in the Classpath entries section of the Build tab to add jars

Ø In addition, exporting to a stand-alone application also involves Googleapi.jar, so select the binary build list above Googleapi.jar

Ø after saving, you can see the added items in build.properties:

Source. Google.jar = src/
Output. Google.jar = bin/
Bin.includes = plugin.xml,\
Google.jar,\
Googleapi.jar
Jars.extra.classpath = Googleapi.jar


Attach: Source code download (because the upload file does not support the RAR type, I changed the extension to PDF, please change the extension to RAR after downloading, and then extract)



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.