<span id="Label3"></p> <table> <tbody> <tr> <td width="670px"><p><p>Other jar packages are used inside the class you want to Export. For example, you write a class that connects to a <span id="4_nwp">database and uses the database driver package Oracl.jar (that is, the JDBC package you import into MyEclipse or eclipse <span id="5_nwp">). </span></span></p></p><p><br><span style="color: #ff0000;"><span style="color: #ff0000;"> <strong>1</strong>.</span></span><span style="color: #010101;"><span style="color: #010101;">first, The class you want to export to the above steps to export the formation of a jar package, such as called Project.jar</span></span><br><span class="Apple-tab-span"><span style="color: #010101;"><span style="color: #010101;">1). in</span></span><span style="text-decoration: underline;"><span style="text-decoration: underline;">Eclipse or Myclipse</span></span><span style="color: #010101;"><span style="color: #010101;">Select the class or package you want to export, right-click, Select Export sub-option;</span></span><br><br><span class="Apple-tab-span"><span style="color: #010101;"><span style="color: #010101;">2). in the dialog box that pops up, Select the Java file---select the jar files and click next;</span></span><br><br><span class="Apple-tab-span"><span style="color: #010101;"><span style="color: #010101;">3). in the text box after the jar file, select the location and name of the jar package you want to generate, and note the export generated class files and resources and export Java source files and Reso Urces Front tick, Click next; </span></span><br><br><span class="Apple-tab-span"><span style="color: #010101;"><span style="color: #010101;">4). Click two times</span></span><span id="6_nwp">Next<span style="color: #010101;"><span style="color: #010101;">button to reach Jar Manifest Specification. Note In the text box at the bottom of the main class, select the entry class for your Jar Package. Click Finish to Finish. </span></span><br><strong><strong><span style="color: #ff0000;">2</span></strong></strong><span style="color: #010101;"><span style="color: #010101;">Create a new folder test, such as in the D packing directory;</span></span><br><br><strong><strong><span style="color: #ff0000;">3</span></strong></strong><span style="color: #010101;"><span style="color: #010101;">Copy the Project.jar and Oracl.jar to the test file, right-click Project.jar and unzip to the current Folder. Put Meta-inf/manifest. MF</span></span><span id="3_nwp"><span id="3_nwp"> cut <span style="color: #010101;"> to another place (like the desktop!) Meta-inf/manifest. MF refers to Project.jar inside, Oracle.jar inside also have this thing, but we now temporarily ignore it. Delete the original compressed package after decompression; </span> <br> <br> <span style="color: #ff0000;"> <strong> 4 </strong> </span> <span style="color: #010101;" . right-click oracl.jar and unzip to the current folder. (similarly: delete original installation package after decompression) < span> <br> <br> <strong> <span style="color: #ff0000;">5 </span> </strong> <span style="color: #010101;" in a dos environment, enter the test < span> on the D drive <span id="2_nwp"> folder <span style="color: #010101;" , perform jar cvfm new.jar meta-inf manifest.mf., do not forget the last point. (this is especially important, key to success or failure) < span> <br> <br> <span style="color: #ff0000;"> <strong> 6 </strong> </span> <span style="color: #010101;" use the compression tool to open (not unzip) your newly generated new.jar (this is automatically under test file), using meta-inf manifest you put on desktop . mf covers (enter the inside new.jar. mf, direct paste overlay) original. < span> <br> <br> <span style="color: #010101;" you can enter the directory where your jar is located in a dos environment, run < span> <span id="1_nwp" java<span style="color: #010101;"> -jar name. jar (default is New.jar if you haven't changed), check to see if it's running Correctly. </span> <br> </span> </span> </span></span></span></span></span></span></span></span></span></span></span></p><p><p>Add one thing: believe that many people convert the program into a jar package and then want to convert the jar package to The. exe, here is a good software "jsmooth-0.9.9-7". Tutorial in: http://lzj0470.iteye.com/blog/1335614 (generated. exe suggests English name, not with <span id="0_nwp">Chinese characters or any other special character)</span></p></p></td> </tr> </tbody> </table><p><p></p></p> <table> <tbody> <tr> <td></td> </tr> </tbody> </table><p><p>Android Merge two jar packages</p></p></span>
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