Jump to: navigation, search

Difference between revisions of "Jetty/Howto/Run Jetty"

< Jetty‎ | Howto
(Standalone Startup)
(Standalone Startup)
Line 16: Line 16:
 
'''Command Line Option Help'''
 
'''Command Line Option Help'''
  
'''--help'''
+
:'''--help'''
> Help / Usage Information
+
:: Help / Usage Information
  
'''--stop'''
+
:'''--stop'''
> 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 the version information about Jetty
+
:: Show the version information about Jetty
  
'''OPTIONS=option,....'''
+
:'''OPTIONS=option,....'''
> OPTIONS allows you to specify the jetty OPTIONS that you want to use when starting up Jetty.
+
:: OPTIONS allows you to specify the jetty OPTIONS that you want to use when starting up Jetty.
Example OPTIONS are plus, jndi, *, default, etc ...
+
:: Example OPTIONS are plus, jndi, *, default, etc ...
  
 
===Startup Modes===
 
===Startup Modes===

Revision as of 17:10, 1 July 2009



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] [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 the version information about Jetty
OPTIONS=option,....
OPTIONS allows you to specify the jetty OPTIONS that you want to use when starting up Jetty.
Example OPTIONS are plus, jndi, *, default, etc ...

Startup Modes

Alternative Startup Techniques

Embedded Startup

Jetty can be configured and started as an embedded Web App Server from within another Java program. See Embedded Jetty for more details.

Eclipse Startup

Eclipse can be started up from within Eclipse using a variety of techniques, see Use Jetty with Eclipse IDE for details.

JUnit Startup