Embed Jetty to JavaSE project

I downloaded jetty from http://download.eclipse.org/jetty/stable-9/dist/.

I can start/stop Jetty server. Also I know about tutorials on eclipse wiki. But I cannot find info how to add jetty to project on Java SE in eclipse.

Simply: org.eclipse.jetty.server.Server is not recognized.

Answers


If you want to embed Jetty you will need the to add the Jar file to your Build Path in Eclipse.

Jetty: http://download.eclipse.org/jetty/stable-9/dist/

The jars are located in the lib folder and you probably need the Jetty-server.jar file.

How to add a Jar to Build Path in Eclipse: Where to put the external jars?


I assume you have your plugin sorted and it's now a compiler issue in your project. Check your build path for the project to see if you have the jetty jar included there.


Need Your Help

Knockout js: Lazy load options for select

javascript knockout.js lazy-loading

I am trying to create a lazy loading select with knockout js. Loading the data on demand and getting it to update the UI is simple thanks to knockout. However I have an issue with setting the correct

CSS: link on image works only half

css

I have a profile header with a profile image in a overlay background. The link on the profile image works only half, and the image won't vertical align middle in the white border box.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.