How to generate a JAR File

Source: Internet
Author: User
How to generate a jar file.

Menu: wizards -- Archive Builder
To regenerate the JAR file, select project -- rebuilder from the menu.

Add other jar packages in JBuilder.

1> menu: Tools -- Enterprise setup -- datebase driver -- add -- New -- select the path where the jar is located -- after selection -- OK
Restart JBuilder.

2> menu: Project Properties -- required libraries -- add -- select the corresponding jar -- select it -- OK
Obtain the method for starting the command.
Select Start In JBuilder. Then, the startup statements will appear below. Copy these statements to a bat file.
If you want to use this function, you can modify the corresponding path or copy these jar files to the local directory.
How to start the JAR file.
You only need to add the path modification of the corresponding startup command to the corresponding jar to start.

For example:
Original article:

D:/jbuilder6/jdk1.3.1/bin/javaw-classpath
"D:/Zhongsheng/net_mony/where/classes; D:/jbuilder6/lib/jbcl. jar;
D:/jbuilder6/lib/dx. jar; D:/jbuilder6/lib/beandt. jar; D:/jbuilder6/lib/dbswing. jar;
C:/jdk1.4/lib/mysql_comp.jar; D:/jbuilder6/jdk1.3.1/demo/jfc/java2d/java2demo. jar;
D:/jbuilder6/jdk1.3.1/JRE/lib/i18n. jar; D:/jbuilder6/jdk1.3.1/JRE/lib/jaws. jar;
D:/jbuilder6/jdk1.3.1/JRE/lib/RT. jar; D:/jbuilder6/jdk1.3.1/JRE/lib/sunrsasign. jar;
D:/jbuilder6/jdk1.3.1/lib/dt. jar; D:/jbuilder6/jdk1.3.1/lib/htmlconverter. jar;
D:/jbuilder6/jdk1.3.1/lib/tools. Jar "where. whereapp

After modification:

Javaw-classpath
"Where. jar; jbcl_edit.jar; dx_edit.jar; beandt_edit.jar; dbswing_edit.jar; mysql_comp_edit.jar;
Java2demo_edit.jar; i18n_edit.jar; jaws_edit.jar; rt_edit.jar; sunrsasign_edit.jar; dt_edit.jar;
Htmlconverter_edit.jar; tools_edit.jar "where. whereapp

In this example, copy the files mentioned in the original article to the current directory and change the name to + "_ edit". Then
D:/Zhongsheng/net_mony/where/classes; remove and add the following sentence: Where. jar; the file is a jar generated by JBuilder.
File. At this time, the startup is completely correct.

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.