Difference between revisions of "Jetty/Howto/Run Jetty"
Line 6: | Line 6: | ||
====Using the Start.jar==== | ====Using the Start.jar==== | ||
− | The easiest way to start | + | The easiest way to start Jetty, is to use the start.jar that comes with the distribution. |
[jetty-distribution-7.0.0.M3]$ '''java -jar start.jar''' | [jetty-distribution-7.0.0.M3]$ '''java -jar start.jar''' | ||
Line 22: | Line 22: | ||
: Stop the actively running Jetty Server (started with a previous use of start.jar) | : Stop the actively running Jetty Server (started with a previous use of start.jar) | ||
; --version | ; --version | ||
− | : Show | + | : Show Jetty version information |
; --secure | ; --secure | ||
: Enable Security: JVM Security Manager, Security Policies, Secure & Audit Logging | : Enable Security: JVM Security Manager, Security Policies, Secure & Audit Logging | ||
Line 30: | Line 30: | ||
: List available options, then exit. | : List available options, then exit. | ||
; OPTIONS=option,.... | ; OPTIONS=option,.... | ||
− | : OPTIONS allows you to specify the | + | : OPTIONS allows you to specify the Jetty classpath entries that you want to use when starting up Jetty. |
: OPTIONS lets you specify which bits and pieces of Jetty you want to use. | : OPTIONS lets you specify which bits and pieces of Jetty you want to use. | ||
: Default OPTIONS set is "default,* | : Default OPTIONS set is "default,* | ||
: NOTE: the "*" Option is always appended to the OPTIONS list. | : NOTE: the "*" Option is always appended to the OPTIONS list. | ||
; DEBUG=true | ; DEBUG=true | ||
− | : Enable verbose debug output | + | : Enable verbose debug output for the startup sequence |
The exact JARs and classpath entries that will be activated for each option are listed in the [[Jetty/Reference/Start Options|Start Options reference]] . | The exact JARs and classpath entries that will be activated for each option are listed in the [[Jetty/Reference/Start Options|Start Options reference]] . | ||
Line 42: | Line 42: | ||
====Embedded Startup==== | ====Embedded Startup==== | ||
− | Jetty can be configured and started as an embedded | + | Jetty can be configured and started as an embedded webapp server from within another Java program. See [[Jetty/Howto/Embed Jetty|How to Embed Jetty]] for more details. |
− | See [[Jetty/Howto/Embed| | + | |
====Eclipse Startup==== | ====Eclipse Startup==== | ||
− | Eclipse can be started up from within Eclipse using a variety of techniques | + | Eclipse can be started up from within Eclipse using a variety of techniques; see [[Jetty/Howto/Use Jetty with Eclipse|How to Use Jetty with Eclipse IDE]] for details. |
====JUnit Startup==== | ====JUnit Startup==== | ||
}} | }} |
Revision as of 06:51, 4 August 2009
Contents
Introduction
This howto covers how to start up Jetty as standalone, and links to pages which cover alternative methods of startup.
Steps
Standalone Startup
Using the Start.jar
The easiest way to start Jetty, is to use the start.jar that comes with the distribution.
[jetty-distribution-7.0.0.M3]$ java -jar start.jar
Command Line Options
$ java -jar start.jar --help Usage: java -jar start.jar [--help|--stop|--version|--dry-run|--list-options|--secure] [OPTIONS=option,...] [name=value ...] [config ...]
Command Line Option Help
- --help
- Help / Usage Information
- --stop
- Stop the actively running Jetty Server (started with a previous use of start.jar)
- --version
- Show Jetty version information
- --secure
- Enable Security: JVM Security Manager, Security Policies, Secure & Audit Logging
- --dry-run
- Print the command line that the start.jar generates, then exit.
- --list-options
- List available options, then exit.
- OPTIONS=option,....
- OPTIONS allows you to specify the Jetty classpath entries that you want to use when starting up Jetty.
- OPTIONS lets you specify which bits and pieces of Jetty you want to use.
- Default OPTIONS set is "default,*
- NOTE: the "*" Option is always appended to the OPTIONS list.
- DEBUG=true
- Enable verbose debug output for the startup sequence
The exact JARs and classpath entries that will be activated for each option are listed in the Start Options reference .
Alternative Startup Techniques
Embedded Startup
Jetty can be configured and started as an embedded webapp server from within another Java program. See How to Embed Jetty for more details.
Eclipse Startup
Eclipse can be started up from within Eclipse using a variety of techniques; see How to Use Jetty with Eclipse IDE for details.