/////////////////////////////////////////////
make .jar runnable
//////////////////////////////////////////
Hello;
I can make a .jar from my program and move it to a folder in my progject but I would like to make
it runnable. So I have shown the Command to make the -cmf (non runnable) .jar that
works fine.
I will show the myManifest for the -cvmf (runnable) command but it will not load
the attribute from schoolofdb.jar.
I thought the attribute would be found in the myManifest.mf shown below.
the schoolofdb.jar is created as before but not runnabale. please find the error
stated below.
thanks
working -cmf command works fine
C:\Program Files\Java\jdk1.6.0_11\bin>jar -cvmf C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\schooldb_project\target_schooldb\schooldb\schoolofdb\myManifest.mf C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\schooldb_project\target_schooldb\schooldb\schoolofdb\test\schoolofdb.jar C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\schooldb_project\target_schooldb\schooldb\schoolofdb
-cmvf command will not load
jar -cvmf C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\schooldb_project\target_schooldb\schooldb\schoolofdb\myManifest.mf C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\schooldb_project\target_schooldb\schooldb\schoolofdb\test\schoolofdb.jar C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\schooldb_project\target_schooldb\schooldb\schoolofdb
above 3 params
jar -cvmf C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\schooldb_project\target_schooldb\schooldb\schoolofdb\myManifest.mf
C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\schooldb_project\target_schooldb\schooldb\schoolofdb\test\schoolofdb.jar
C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\schooldb_project\target_schooldb\schooldb\schoolofdb
b]myManifest.mf this is the only thing in the myManifest[/b]
main.class=view.main
b]error when trying to click the schoolofdb.jar created using -cvmf [/b]
Failed to load Main-Class mnifest attribute from
C:\Users\depot\Documents\ceyesumma\java-cach\my_projects\schoolofdb_project\targetPcchoolofdb\schooldb\schoolofdb\test\schoolofdb.jar