6, run the application
(1) Use additional JAR files
The method of running the program and the first part are the same, you can refer to the corresponding part, but because of the external JAR files of Googleapi.jar, you need some of the following adjustments:
l Add GoogleApi.jar to the Run Environment (Plugin.xml)
library>
library>
runtime>
l Due to the dynamic classpath used by PDE, in order to be able to correctly compile, add additional ClassPath entry in the ClassPath of Plugin:
Ø Import GoogleApi.jar into the root directory of Google Project
Ø Open plugin.xml with plug-in manifest editor, click the Add Jars button in the Extra ClassPath Entries section of the Build tab, add Googleapi.jar
Ø In addition, export to stand-alone applications also need to include GoogleApi.jar, so select Googleapi.jar in the top of Binary Build
Ø After saving, you can see the added item in build.properties:
Source.google.jar = SRC /
Output.google.jar = bin /
bin.includes = plugin.xml, /
Google.jar, /
Googleapi.jar
Jars.extra.classpath = Googleapi.jar
Attachment: Source code download (I don't support the RAR type because the upload file does not support the RAR type, I will change the extension to the PDF, please change the extension to RAR after downloading, then decompress)