On Feb 7, 2:29 pm, Mark Space <marksp...@sbc.global.net> wrote:
sengsational wrote:
Can I run MyTest.class if it's packed in a war file
like it is (under WEB-INF/classes)?
I don't think so. Running a .jar requires that the MANIFEST.INF file be
configured correctly. However, I think the web container also requires
a correctly configured MANIFEST.INF file, which conflicts with the
needed settings for running from a command line.
The "manifest.mf" file didn't have anything important in it. I was
careful with addint to the file (as indicated here:
http://mindprod.com/jgloss/jar.html#MANIFEST). I put a Main-Class:
and a Class-Path: in there, like this:
Class-Path: WEB-INF/classes/ ./ classes/
Main-Class: com.some.myapp.MyTest
Which didn't work. I also took MyTest out of the package and put
Main-Class: MyTest
Which also didn't work.
It's hard to accept that Java "just can't do it". Roedy?
--Dale--
PS: java version "1.6.0_03"
Web applications don't and shouldn't have a main() method. Does yours?
servlet container. What are you giving your app to provide those services?