Chinaunix首页 | 论坛 | 博客
  • 博客访问: 949691
  • 博文数量: 264
  • 博客积分: 10107
  • 博客等级: 上将
  • 技术积分: 2455
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-09 16:34
文章分类

全部博文(264)

文章存档

2012年(1)

2011年(11)

2010年(128)

2009年(82)

2008年(42)

我的朋友

分类: Java

2009-04-17 16:12:05

Eclipse打JAR包

To create a new JAR file in the workbench:
  1. In the Package Explorer, you can optionally pre-select one or more Java elements to export. (These will be automatically selected in the JAR Package Specification wizard page, described in Step 4.)
  2. From the menu bar, select File > Export.
  3. Select JAR file, then click Next.
  4. In the Jar Package Specification page, select the resources that you want to export in the Select the resources to export field.
  5. Select the appropriate check box to specify whether you want to Export generated class files and resources or Export Java source files and resources.
    Note: Selected resources are exported in both cases.
  6. In the Select the export destination field, either type or click Browse to select a location for the JAR file.
  7. Select or clear the Compress the contents of the JAR file check box.
  8. Select or clear the Overwrite existing files without warning check box. If you clear thischeck box, then you will be prompted to confirm the replacement of each file that will be overwritten.
    Note: The overwrite option is applied when writing the JAR file, the JAR description, and the manifest file.
  9. You have two options:
    • Click Finish to create the JAR file immediately.
    • Click Next to use the JAR Packaging Options page to set advanced options, create a JAR description, or change the default manifest.

========================================

 

要选择main class,不然会报错找不到class

阅读(1074) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~