corgrath
corgrath

Reputation: 12275

Libraries for embedding Jetty?

Embedding Jetty webserver into a Java application is supposedly easy; examples abound.

No examples indicate the Jetty libraries that must be imported.

I have downloaded the Jetty distribution package... it has 36 jar files.

Where can I find a step-by-step example of exactly must be accomplished to embed Jetty in an application?

Upvotes: 6

Views: 6566

Answers (2)

Peter Knego
Peter Knego

Reputation: 80330

From the docs, libraries for embedding Jetty 6:

servlet-api-2.5-6.x.jar
jetty-util-6.x.jar
jetty-6.x.jar

For JSP you'll need additional jars.

For Jetty 8, try:

jetty-continuation-8.*.jar
jetty-http-8.*.jar
jetty-io-8.*.jar
jetty-server-8.*.jar
jetty-util-8.*.jar
servlet-api-3.0.jar

See also: http://wiki.eclipse.org/Jetty/Tutorial/Jetty_HelloWorld

Upvotes: 7

KhanZeeshan
KhanZeeshan

Reputation: 1410

I was able to do this if anyone else wants to know follow the link.

http://codersapprentice.blogspot.com/2011/09/android-integrate-jetty-server-in-my.html

Upvotes: 1

Related Questions