文件夹程序:如何制作jar文件?
C:\ProgramFolder
在文件夹中有一个包类:
com\mysite\my_program
主类名:
Program.class
...或全称:
com.mysite.my_program.Program
在根文件夹中有清单文件的内容:
Manifest-Version: 1.0
Main-Class: com.mysite.my_program.Program
而且我做的jar文件:
jar cmf MANIFEST.MF my_program.jar com\mysite\my_program\*.class
,并试图吃午饭吧:
java -jar my_program.jar -a -b -c http://google.com/ google
这样的:
-a -b -c http://google.com/
are par amerts到我的程序。没有他们,Tesult也是一样。
而且我'得到错误:
Couldn't find or load main class Цjar
在实际的程序清单文件看起来是这样的:
所以,我不知道为什么Цjar
它真的说'classЦjar'吗?打开jar文件,看看Manifest,如果它以某种方式搞砸了。 – Thilo
[如何制作JAR文件?]的可能重复(http://stackoverflow.com/questions/2179113/how-to-make-a-jar-file) – 2011-11-28 04:43:35
@Thilo是!)Ö - 是一封俄语信 – bluebyte