[fedora-java] How to run java WAR file project in command line

Deepak Bhole dbhole at redhat.com
Thu Aug 19 19:13:37 UTC 2010


* Ranjith <ranjith.k at sedin.co.in> [2010-08-19 14:03]:
> Hi all,
>      Using apache-ant i compiled a java project what i did is created it
> into war file and deployed on tomcat. what i need is how to deploy the same
> war file in command line.
>

What do you mean by 'deploy the same war file in command line'? Running
ant from command-line is doing just that -- deploying the webapp by
copying it to the right location for Tomcat to see.

Does one of the classes have a main() you want to execute?

Deepak

> note :
> I don`t want to run it on localhost everything should be executed in command
> line.
> Thanks in advances
> 
> -- 
> Cheers,
> Ranjith Kumar.K
> http://ranjithtenz.wordpress.com

> --
> java-devel mailing list
> java-devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/java-devel



More information about the java-devel mailing list