user1866731
user1866731

Reputation: 499

Deploy a jar in tomcat

It is possible deploy a simple jar in tomcat and it run that???

A simple example,is just execute main and print a hello world :P

Upvotes: 4

Views: 20302

Answers (2)

Toni Toni Chopper
Toni Toni Chopper

Reputation: 1851

No, it's not. You have to create a web app that includes your jar and a servlet (as a bare minimum).

Have a look at this http://docs.oracle.com/javaee/6/tutorial/doc/bnafd.html

Upvotes: 5

Dave Newton
Dave Newton

Reputation: 160191

No.

Tomcat is a web app container, you need to deploy a web app.

Upvotes: 4

Related Questions