java压缩文件成JAR包详解(二)

2014-11-23 23:31:34 · 作者: · 浏览: 1
file(s)
u---want to update an existing JAR file.

-->生成exe:<--

第一 :在jbuilder中:
首先你要保证Run菜单-->Run Project能顺利运行
然后Wizards菜单-->Native Executable Builder
选中Compress the contents of the archive(产生jar文件的话)
Next-->Next-->选中Always include all classes and resources再Next-->Next-->Next
选中Windows GUI"exe"(产生EXE文件的话)-->Finish
再在项目的文件列表中的Native Executable右击-->Make就可以了

第二 :在cmd 下生成jar文件
abc.txt内容如下:
Manifest-Version: 1.0
Main-Class: main-class-name(回 )
在cmd下:
javac *.java
jar cvfm abc.jar abc.txt *.class