Jetty and Eclipse Integration
Join the DZone community and get the full member experience.
Join For Freethis 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/
Opinions expressed by DZone contributors are their own.
Comments