文件夾程序:如何製作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