Hello Erik,

well, I think you're about to run your first Restlet server.

If your main method contains the lines of code indicated in tutorial#3 (
http://www.restlet.org/documentation/1.0/tutorial#part03) and if your
classpath contains at least :
 - org.restlet.jar (restlet API)
 - com.noelios.restlet.jar (the reference implementation of the API)
 - the jar of one server connector (see
http://www.restlet.org/documentation/1.0/connectors as indicated in the
tutorial http://www.restlet.org/documentation/1.0/tutorial#part02).

it should work.

best regards,
Thierry Boileau

On 9/26/07, Erik Vullings <[EMAIL PROTECTED]> wrote:
>
> Hi Thierry,
>
> I'm a bit further now, and I could get a basic example to run. However, I
> would still like to see a basic Hello World (RESTlet as a server)
> application, with build.xml or pom.xml files, and the correct directory
> hierarchy. Shouldn't this be available from the website. Or a maven
> archetype to quickly setup the basic structure. It has already taken me a
> day or more to start, which is not really a recommendation for RESTlet (it
> took me less time to get a basic struts(2) or tapestry webapp project
> running, and RESTlet is supposed to be simple...).
>
> My current project looks like this (improvements???)
> root
>   build
>     classes etc
>   lib
>     whole bunch of jar files
>   src
>     java
>       packagename
>         Main.java
>
> Thanks
> Erik
>
> On 9/24/07, Thierry Boileau <[EMAIL PROTECTED]> wrote:
> >
> > Hello Erik,
> >
> > this sample code must be run inside a servlet container such as Tomcat,
> > Jboss, etc.
> > You can use one of the inner servlet containers provided by Eclipse and
> > link it with the sample project (use Eclipse 3.3 e.g.) or generate the
> > war of the project and deploy it in your prefered servlet container
> > manually.
> >
> > best regards,
> > Thierry Boileau
> > > Hi,
> > >
> > > I'm new to RESTlet, and liked the tutorial descriptions on restlet.org
> > > <http://restlet.org>. I've also had a look at the Wiki, and did manage
> > > to find some examples (like Restlet-example) by Irfan Jamadar.
> > > Unfortunately, it doesn't come with a tutorial how to run it...
> > >
> > > I'm using Eclipse, have read the developer FAQ#21 and included the
> > > library directory from Restlet in my plugin directory. I can open this
> >
> > > particular example, and it doesn't show any errors (anymore - that
> > > involved adding the manifest etc.), but my question is how can I run
> > > it (it auto builds). Or if there are other useful examples out there,
> > > I would be very grateful!
> > >
> > > Thanks,
> > > Erik
> > > .
> >
>
>

Reply via email to