HOW TO CREATE A JAR FILE MANIFEST

R

rohit

Hi frds, i want to know how we can create the jar file in java.because
when i creating the jar by

c:/java>jar cf Mynewfile.jar

it just makes the jarfile but when i want to excute it .it gives an
error that file file

loading error mainifeast file can not be found.plz
........................ give an idea that what should i do.plz give in
step wise procedure. thx.
 
A

Andrew Thompson

rohit wrote:

Sub: HOW TO CREATE A JAR FILE MANIFEST

Please stop SHOUTING at us!

...& note that while we are not your enemies, we are
also not your friends, we are just a bunch of people
who are also interested in Java.
...i want to know how we can create the jar file in java.because
when i creating the jar by

c:/java>jar cf Mynewfile.jar

Why did you add 'cf' to the options?

Do you know what those options mean?

Good information on the jar tool can be found
in the JavaDocs. Here is the description of the
Java 1.5 jar tool (for windows)..
it just makes the jarfile but when i want to excute it .it gives an
error that file file

loading error mainifeast file can not be found.

Please always copy-paste error output, otherwise
you are wasting your time, and our bandwidth.
...plz
....................... give an idea that what should i do.plz

Do you have a sticky '.' key? Please fix that.
...
...give in
step wise procedure. ...

Give in money.

These are discussion forums, not some sort of
'help desk'. Further, you have stumbled into a
forum where people are almost expected to ask
smart questions, and be prepared to a lot of
research on their own. A better group for
beginners, would be..
comp.lang.java.help
...but even there, people are not likely to 'hold
you by the hand' and describe things, step-by-step,
for you personally.

Andrew T.
 
A

Andy Dingley

Andrew said:
rohit wrote:

..& note that while we are not your enemies, we are also not your friends,

I thought he meant "fnords"


Probably time to start using Ant (at risk of starting a religious
war)

If you need to do something once, do it with the jar tool.
If you need to do something repeatedly, do it automatically.
I've never needed to make one jar file, just the once. If I'm doing it,
I'm doing a lot of it.


A trivial "no-op" manifest is automatically created for you by using
Ant and the <jar> task. I think the OP's question is more to do with
"How do I create a jar with just enough manifest to be usable?" rather
than "What are all the possibilities of what I can do with a manifest?"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top