to package Java projects as jars
First Type: MyEclipse packages Java projects into jars.
1, right click on the item, select Export.
2, click Java, select Jar file.
3, browse the saved path of the packaged jar in the jar file text, and then next.
completed.
The second type:ant packs Java projects into jars.
Please refer to: I write ant article ant: Getting Started demo (Project,target,delete,mkdir,fileset,antcall,javac,classpath,jar ...) 》
Package Web project as a war package
First Type: myeclipse The Web project project into a jar.
1, right click on the item, select Export.
2, click Java, select War file, and then next.
3, select the packaged Web project, browse to save the path, and then next.
completed.
The second type:ant packs the Web project into a war package.
Please refer to: My ant article "How to package Web project as a war package with Ant"