Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Jetty and Eclipse Integration

DZone's Guide to

Jetty and Eclipse Integration

· Java Zone
Free Resource

Managing a MongoDB deployment? Take a load off and live migrate to MongoDB Atlas, the official automated service, with little to no downtime.

This tutorial will walk you through out how to install Jetty on Eclipse, so you can run web applications on Jetty directly from Eclipse IDE.

As I mentioned on a previous post (Installing and running Jetty), I am trying to use Jetty instead of Tomcat. What I like about Tomcat is that Eclipse has native support to it. You can quickly go to the servers view and add a new Tomcat server instance in less than a minute. But Eclipse does not have native support to Jetty, and I did some research of how to do the same easy way with Jetty as well.

I found this plugin Run-Jetty-Run hosted on Google Code and it is very simple to use. So in this post I will show how to install it within Eclipse and in the next post I will show how it is easy to use.

There are two ways of installing a plugin on Eclipse now: using Eclipse Marketplace or the old way which is Install new Software.

Eclipse Marketplace

The link of Run-Jetty_run Plugin on Marketplace is: http://marketplace.eclipse.org/content/run-jetty-run

1 – Open Eclipse, go to the Help -> Eclipse Marketplace:

2 – Search for run-jetty-run and click on install:

3 – Confirm the installation of the plugin:

4 – Review and accept the licence and click on Finish:

5 – Wait while the plugin is being installed and then restart Eclipse.

Old way - Install new Software

1 – Open Eclipse, go to the Help -> Install new Software:

2 – Click on Add, then fill the form with Name:Jetty (or whatever you like) and Location: http://run-jetty-run.googlecode.com/svn/trunk/updatesite 

3 – Select the plugin and click on Next:

4 – Confirm the installation of the plugin:

5 – Review and accept the licence and click on Finish:

6 – Wait while the plugin is being installed and then restart Eclipse.

On next post, we will see how to use it.

Happy Coding! :)

 

From http://loianegroner.com/2011/07/jetty-and-eclipse-integration/

MongoDB Atlas is the easiest way to run the fastest-growing database for modern applications — no installation, setup, or configuration required. Easily live migrate an existing workload or start with 512MB of storage for free.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}