aspose file tools*
The moose likes Java in General and the fly likes make .jar runnable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "make .jar runnable" Watch "make .jar runnable" New topic
Author

make .jar runnable

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
/////////////////////////////////////////////
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

-cmvf command will not load

above 3 params



b]myManifest.mf this is the only thing in the myManifest[/b]



b]error when trying to click the schoolofdb.jar created using -cvmf [/b]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Those BB Code tags won't work if you disable BB Code in your message.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4522
    
    5

Cross post
http://www.daniweb.com/forums/thread303521.html

Split up into this thread and two others
http://www.coderanch.com/t/506842/java/java/create-jar-gm-jar-make
http://www.coderanch.com/t/506840/java/java/moving-jar-sys-dir


luck, db
There are no new questions, but there may be new answers.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

David Newton wrote:Those BB Code tags won't work if you disable BB Code in your message.

And therefore I enabled them for James.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: make .jar runnable
 
Similar Threads
Running JAR file problem...
JAR - error message... need help!
moving a .jar to sys dir
create this .jar gm.jar. and make it
Problem when creating / running a jar file