Difference between revisions of "Jetty/Howto/Run Jetty"
Line 8: | Line 8: | ||
The easiest way to start Jetty, is to use the start.jar that comes with the distribution. | The easiest way to start Jetty, is to use the start.jar that comes with the distribution. | ||
− | + | <source lang="bash"> | |
+ | java -jar start.jar | ||
+ | </source> | ||
− | = | + | To see the command line options for start.jar and help text for start.jar use: |
+ | <source lang="bash"> | ||
+ | $ java -jar start.jar --help | ||
+ | </source> | ||
− | + | For a full description of start.jar features see [[Jetty/Feature/Start.jar|Jetty Start.jar Feature Guide]]. | |
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Alternative Startup Techniques=== | ===Alternative Startup Techniques=== |
Revision as of 22:37, 15 September 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.
java -jar start.jar
To see the command line options for start.jar and help text for start.jar use:
$ java -jar start.jar --help
For a full description of start.jar features see Jetty Start.jar Feature Guide.
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.