java自动生成jar包工具

java

jar -cfe Main.jar com.xjq.test.Main com/xjq/test/Main.class

jar -cmef manifest.mf com.xjq.test.Main myFile.jar @classes.list

jar -cfe my3.jar com.xjq.test.main @classes.list

jar -cf my2.jar @classes.list

jar -tf Main.jar

javac @options @classes

javac -d E:\HBWork\android_project\workspace\test\src\bin -sourcepath E:\HBWork\android_project\workspace\test\src\

classes @classes

SET GEN_PATH=E:\HBWork\android_project\workspace\_TOOLS_\OverSea\bin

SET SRC_PATH=E:\HBWork\android_project\workspace\_TOOLS_

SET CLASSPATH=E:\HBWork\android_project\workspace\_TOOLS_\OverSea\libs\*

ECHO CLASSPATH

javac -d %GEN_PATH% -classpath %CLASSPATH% -sourcepath %SRC_PATH% @JavaClass

pause

SET CUR=%CD%

SET JAR_PATH=%CUR%\main.jar

SET CLASS_PATH=@%CUR%\class.list

SET PACKAGE_PATH=%CD%\OverSea\bin

ECHO %PACKAGE_PATH%

CD %PACKAGE_PATH%

jar cf %JAR_PATH% %CLASS_PATH%

PAUSE

  

以上是 java自动生成jar包工具 的全部内容, 来源链接: utcz.com/z/391526.html

回到顶部