Re: Running java programs from class files



Knute Johnson wrote:
Andrew Thompson wrote:
Knute Johnson wrote:
...
C:\test>cd \

C:\>jar cvfe test/Test.jar test.Test test/*.class

Aha! I did miss thid command that makes the Jar when I
first read (OK.. skimmed) this, but...

'e'? 'cvfe' as the options, what is 'e'?
....
The e option is the entry point. Same as setting Main-Class in the
manifest file.

That's handy.

..I'm using the 1.6 beta2 so it may have come with that
set of code.

I expect so - I am still using the 1.5 SDK.

..Much simpler than making all those manifest files when you
don't have anything else to put in them.

Heck yeah. Especially for dealing with that darn
'last line must be blank' crap that they specify
for the mainfest. I wonder how many hundreds
of man-hours have been wasted due to that alone?

Andrew T.

.