0

I need to run class with main method from a war file. I tried java -jar test.war. It dint work. I tried by putting Main-Class entry in MANIFEST.MF file but giving error as NoClassDefFound error.

Thanks.

Aman Arora
  • 1
  • 1
  • 2

1 Answers1

0

The classes that get loaded into the classpath diffirent with war and jar. Try to change file and you can run with command line. Suggest this link to help you: How do I run a class in a WAR from the command line?