怎么打jar包
如何打jar包
1 用jar命令
1 将类文件打成jar
jar cvf 生成的jar文件名 类文件
jar cvf hello hello.class world.class
2 将文件夹下的东东打成jar
jar cvf hello lesson
2 用myeclipse
file-》export-》java-》jar file-》next 看提示就行了
注意:要想打成可执行的jar必须有一个文件: MANIFEST.MF,其内容如下
Manifest-Version: 1.0
Created-By: 1.5.0_04 (Sun Microsystems Inc.)
Main-Class: mypackage.ShowNum