I want to run many main classes in a War file. Since I have a lot of classes to run, I cannot make a runnable jar. How can I run the classes?
Asked
Active
Viewed 77 times
0
-
Generally a war file implies it's for Servlet(s) and JSP(s). [Answer Unclear Ask Later](http://www.ginifab.com/gift/magic_8_ball_sayings.html). – Elliott Frisch Jul 22 '14 at 04:51
-
WAR and Main class??? – Jayesh Jul 22 '14 at 04:51
-
It has some controllers which call Java classes. The Java classes need some background services. – Abhishek Modi Jul 22 '14 at 04:56
-
See [this question](http://stackoverflow.com/questions/1842972/how-do-i-run-a-class-in-a-war-from-the-command-line). Also, you can have as many main classes in a jar as you like, now if you are specifically asking about an executable jar, different story. – md_rasler Jul 22 '14 at 05:09