Dashboard > Jetty > Jetty Wiki > How to find out the version of Jetty
How to find out the version of Jetty Log In | Sign Up   View a printable version of the current page.

Added by Jan Bartel , last edited by Jan Bartel on May 09, 2006
Labels: 
(None)

Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery

How to find out the version of Jetty

Jetty standalone

To get Jetty to print out it's version you can type:

>  java -jar start.jar --version
jetty 6.0-SNAPSHOT

Alternatively, look at the log file. The second line should be the version number in an INFO message. Like this:

:INFO:  jetty 6.0-beta14

Jetty plugin

Look at the INFO messages printed out by Jetty when the plugin starts up. After any build-related messages from Maven, you should see the following:

[INFO] Starting jetty 6.0-beta14 ...
:INFO:  jetty 6.0-beta14
. . .
[INFO] Started Jetty Server

Jetty embedded

If you want to print out the runtime version of Jetty, you can use the following code snippet:

import org.mortbay.jetty.Server;

 Server server;
 ...
 server = new Server();
 ...
 System.err.println ("Starting jetty "+server.getClass().getPackage().getImplementationVersion()+" ...");
Site running on a free Atlassian Confluence Open Source Project License granted to The Codehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.2 Build:#919 Nov 26, 2007) - Bug/feature request - Contact Administrators