You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Pradeep Pujari <Pr...@rocketmail.com> on 2009/10/14 01:43:11 UTC

deploy solr in Eclipse IDE

Hi All,

I am trying to install solr nightly build into Eclipse IDE and facing lot of issues while importing the zip file. The build path, libs and various source files are scattered. It took me lot of tine to configure and make it run. 

What development environment are being used and is there a smooth way of importing daily-nightly build into eclipse?

Please help.

Thanks,
Pradeep. 



Re: deploy solr in Eclipse IDE

Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: deploy solr in Eclipse IDE
: In-Reply-To: <4A...@lucidimagination.com>

http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is "hidden" in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.
See Also:  http://en.wikipedia.org/wiki/Thread_hijacking



-Hoss


Re: deploy solr in Eclipse IDE

Posted by Amit Nithian <an...@gmail.com>.
Apparently this is a more popular topic than I thought!
I have received several requests to send the files personally so now I have
made them available for download at
http://filebox.vt.edu/users/anithian/eclipse_settings.zip

Thanks
Amit

On Tue, Oct 20, 2009 at 9:58 PM, Amit Nithian <an...@gmail.com> wrote:

> Pradeep,
> Attached are the files. You may have to open them in a text editor and
> rename the project to match yours but should be pretty straightforward. I
> used this with 1.3 trunk at the time so things may have changed but it's
> easy enough to modify in eclipse.
>
> - Amit
>
>
> On Mon, Oct 19, 2009 at 4:16 PM, Pradeep Pujari <Pr...@rocketmail.com>wrote:
>
>> This is ulr is helpful. If I checkout in Eclipse using SVN(Subclipse), the
>> source files are not as per package structure. Can you please send me your
>> ..project and .classpth files? Thank you in advance.
>>
>> Pradeep
>>
>> --- On Sun, 10/18/09, Amit Nithian <an...@gmail.com> wrote:
>>
>> > From: Amit Nithian <an...@gmail.com>
>> > Subject: Re: deploy solr in Eclipse IDE
>> > To: solr-dev@lucene.apache.org
>> > Date: Sunday, October 18, 2009, 11:06 PM
>> > Hey Pradeep,
>> > Check out
>> >
>> http://lucene.apache.org/solr/version_control.html#Anonymous+Access+%28read-only%29
>> >
>> > <
>> http://lucene.apache.org/solr/version_control.html#Anonymous+Access+%28read-only%29
>> >If
>> > you need more help with setting up Eclipse and Solr trunk
>> > send me an email.
>> > I can send you my .project and .classpath files as I have
>> > it for my setup.
>> >
>> > Take care
>> > Amit
>> >
>> > On Sun, Oct 18, 2009 at 11:34 AM, Pradeep Pujari <
>> Pradeepp@rocketmail.com>wrote:
>> >
>> > > Hi Amit,
>> > > This is what I am looking for. Do you know the URL for
>> > trunk?
>> > >
>> > > Thanks,
>> > > Pradeep.
>> > >
>> > > --- On Sun, 10/18/09, Amit Nithian <an...@gmail.com>
>> > wrote:
>> > >
>> > > > From: Amit Nithian <an...@gmail.com>
>> > > > Subject: Re: deploy solr in Eclipse IDE
>> > > > To: solr-dev@lucene.apache.org
>> > > > Date: Sunday, October 18, 2009, 12:55 AM
>> > > > I think you may have better luck
>> > > > setting up Eclipse, Subclipse etc and hook
>> > > > off of trunk rather than having to re-create the
>> > eclipse
>> > > > project every time
>> > > > a nightly build comes out.
>> > > > I simply have an eclipse project tied to trunk
>> > and every so
>> > > > often i'll do an
>> > > > SVN update when I want/need the latest code.
>> > > >
>> > > > hope that helps some!
>> > > > Amit
>> > > >
>> > > > On Thu, Oct 15, 2009 at 2:31 AM, Brian Carmalt
>> > <bc...@contact.de>
>> > > > wrote:
>> > > >
>> > > > > Hello,
>> > > > >
>> > > > > I Start Solr with Jetty using the following
>> > code. If
>> > > > the classpath and
>> > > > > src paths are set correctly in Eclipse and
>> > you pass
>> > > > the solr.home to the
>> > > > > VM on startup, you just have to start this
>> > class and
>> > > > you can debug Solr
>> > > > > in Eclipse.
>> > > > >
>> > > > > <code>
>> > > > > import org.mortbay.jetty.Connector;
>> > > > > import org.mortbay.jetty.Server;
>> > > > > import
>> > org.mortbay.jetty.webapp.WebAppContext;
>> > > > >
>> > > > > public class JettyStarter {
>> > > > >
>> > > > >        /**
>> > > > >         *
>> > @param args
>> > > > >         */
>> > > > >        public static
>> > void
>> > > > main(String[] args) {
>> > > > >
>> > > > >
>> > > > try {
>> > > > >
>> > > > >
>> > > >         Server
>> > server = new
>> > > > Server(8888);
>> > > > >
>> > > > >
>> > > >
>> >    WebAppContext solr = new
>> > > > WebAppContext();
>> > > > >
>> > > >
>> >    solr.setContextPath("/solr");
>> > > > > solr.setWar("Path to solr directory or
>> > war");
>> > > > >
>> > > >
>> >    server.addHandler(solr);
>> > > > >
>> > > >
>> >    server.setStopAtShutdown(true);
>> > > > >
>> > > >
>> >    server.start();
>> > > > >
>> > > > } catch (Exception e) {
>> > > > >
>> > > >         // TODO
>> > Auto-generated catch
>> > > > block
>> > > > >
>> > > >
>> >    e.printStackTrace();
>> > > > >
>> > > > }
>> > > > >        }
>> > > > >
>> > > > > }
>> > > > >
>> > > > > </code>
>> > > > >
>> > > > >
>> > > > > Am Dienstag, den 13.10.2009, 16:43 -0700
>> > schrieb
>> > > > Pradeep Pujari:
>> > > > > > Hi All,
>> > > > > >
>> > > > > > I am trying to install solr nightly
>> > build into
>> > > > Eclipse IDE and facing lot
>> > > > > of issues while importing the zip file. The
>> > build
>> > > > path, libs and various
>> > > > > source files are scattered. It took me lot
>> > of tine to
>> > > > configure and make it
>> > > > > run.
>> > > > > >
>> > > > > > What development environment are being
>> > used and
>> > > > is there a smooth way of
>> > > > > importing daily-nightly build into eclipse?
>> > > > > >
>> > > > > > Please help.
>> > > > > >
>> > > > > > Thanks,
>> > > > > > Pradeep.
>> > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > > >
>> > >
>> > >
>> >
>>
>>
>

Re: deploy solr in Eclipse IDE

Posted by Amit Nithian <an...@gmail.com>.
Pradeep,
Attached are the files. You may have to open them in a text editor and
rename the project to match yours but should be pretty straightforward. I
used this with 1.3 trunk at the time so things may have changed but it's
easy enough to modify in eclipse.

- Amit

On Mon, Oct 19, 2009 at 4:16 PM, Pradeep Pujari <Pr...@rocketmail.com>wrote:

> This is ulr is helpful. If I checkout in Eclipse using SVN(Subclipse), the
> source files are not as per package structure. Can you please send me your
> ..project and .classpth files? Thank you in advance.
>
> Pradeep
>
> --- On Sun, 10/18/09, Amit Nithian <an...@gmail.com> wrote:
>
> > From: Amit Nithian <an...@gmail.com>
> > Subject: Re: deploy solr in Eclipse IDE
> > To: solr-dev@lucene.apache.org
> > Date: Sunday, October 18, 2009, 11:06 PM
> > Hey Pradeep,
> > Check out
> >
> http://lucene.apache.org/solr/version_control.html#Anonymous+Access+%28read-only%29
> >
> > <
> http://lucene.apache.org/solr/version_control.html#Anonymous+Access+%28read-only%29
> >If
> > you need more help with setting up Eclipse and Solr trunk
> > send me an email.
> > I can send you my .project and .classpath files as I have
> > it for my setup.
> >
> > Take care
> > Amit
> >
> > On Sun, Oct 18, 2009 at 11:34 AM, Pradeep Pujari <
> Pradeepp@rocketmail.com>wrote:
> >
> > > Hi Amit,
> > > This is what I am looking for. Do you know the URL for
> > trunk?
> > >
> > > Thanks,
> > > Pradeep.
> > >
> > > --- On Sun, 10/18/09, Amit Nithian <an...@gmail.com>
> > wrote:
> > >
> > > > From: Amit Nithian <an...@gmail.com>
> > > > Subject: Re: deploy solr in Eclipse IDE
> > > > To: solr-dev@lucene.apache.org
> > > > Date: Sunday, October 18, 2009, 12:55 AM
> > > > I think you may have better luck
> > > > setting up Eclipse, Subclipse etc and hook
> > > > off of trunk rather than having to re-create the
> > eclipse
> > > > project every time
> > > > a nightly build comes out.
> > > > I simply have an eclipse project tied to trunk
> > and every so
> > > > often i'll do an
> > > > SVN update when I want/need the latest code.
> > > >
> > > > hope that helps some!
> > > > Amit
> > > >
> > > > On Thu, Oct 15, 2009 at 2:31 AM, Brian Carmalt
> > <bc...@contact.de>
> > > > wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > I Start Solr with Jetty using the following
> > code. If
> > > > the classpath and
> > > > > src paths are set correctly in Eclipse and
> > you pass
> > > > the solr.home to the
> > > > > VM on startup, you just have to start this
> > class and
> > > > you can debug Solr
> > > > > in Eclipse.
> > > > >
> > > > > <code>
> > > > > import org.mortbay.jetty.Connector;
> > > > > import org.mortbay.jetty.Server;
> > > > > import
> > org.mortbay.jetty.webapp.WebAppContext;
> > > > >
> > > > > public class JettyStarter {
> > > > >
> > > > >        /**
> > > > >         *
> > @param args
> > > > >         */
> > > > >        public static
> > void
> > > > main(String[] args) {
> > > > >
> > > > >
> > > > try {
> > > > >
> > > > >
> > > >         Server
> > server = new
> > > > Server(8888);
> > > > >
> > > > >
> > > >
> >    WebAppContext solr = new
> > > > WebAppContext();
> > > > >
> > > >
> >    solr.setContextPath("/solr");
> > > > > solr.setWar("Path to solr directory or
> > war");
> > > > >
> > > >
> >    server.addHandler(solr);
> > > > >
> > > >
> >    server.setStopAtShutdown(true);
> > > > >
> > > >
> >    server.start();
> > > > >
> > > > } catch (Exception e) {
> > > > >
> > > >         // TODO
> > Auto-generated catch
> > > > block
> > > > >
> > > >
> >    e.printStackTrace();
> > > > >
> > > > }
> > > > >        }
> > > > >
> > > > > }
> > > > >
> > > > > </code>
> > > > >
> > > > >
> > > > > Am Dienstag, den 13.10.2009, 16:43 -0700
> > schrieb
> > > > Pradeep Pujari:
> > > > > > Hi All,
> > > > > >
> > > > > > I am trying to install solr nightly
> > build into
> > > > Eclipse IDE and facing lot
> > > > > of issues while importing the zip file. The
> > build
> > > > path, libs and various
> > > > > source files are scattered. It took me lot
> > of tine to
> > > > configure and make it
> > > > > run.
> > > > > >
> > > > > > What development environment are being
> > used and
> > > > is there a smooth way of
> > > > > importing daily-nightly build into eclipse?
> > > > > >
> > > > > > Please help.
> > > > > >
> > > > > > Thanks,
> > > > > > Pradeep.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>

Re: deploy solr in Eclipse IDE

Posted by Pradeep Pujari <Pr...@rocketmail.com>.
This is ulr is helpful. If I checkout in Eclipse using SVN(Subclipse), the source files are not as per package structure. Can you please send me your ..project and .classpth files? Thank you in advance.

Pradeep

--- On Sun, 10/18/09, Amit Nithian <an...@gmail.com> wrote:

> From: Amit Nithian <an...@gmail.com>
> Subject: Re: deploy solr in Eclipse IDE
> To: solr-dev@lucene.apache.org
> Date: Sunday, October 18, 2009, 11:06 PM
> Hey Pradeep,
> Check out
> http://lucene.apache.org/solr/version_control.html#Anonymous+Access+%28read-only%29
> 
> <http://lucene.apache.org/solr/version_control.html#Anonymous+Access+%28read-only%29>If
> you need more help with setting up Eclipse and Solr trunk
> send me an email.
> I can send you my .project and .classpath files as I have
> it for my setup.
> 
> Take care
> Amit
> 
> On Sun, Oct 18, 2009 at 11:34 AM, Pradeep Pujari <Pr...@rocketmail.com>wrote:
> 
> > Hi Amit,
> > This is what I am looking for. Do you know the URL for
> trunk?
> >
> > Thanks,
> > Pradeep.
> >
> > --- On Sun, 10/18/09, Amit Nithian <an...@gmail.com>
> wrote:
> >
> > > From: Amit Nithian <an...@gmail.com>
> > > Subject: Re: deploy solr in Eclipse IDE
> > > To: solr-dev@lucene.apache.org
> > > Date: Sunday, October 18, 2009, 12:55 AM
> > > I think you may have better luck
> > > setting up Eclipse, Subclipse etc and hook
> > > off of trunk rather than having to re-create the
> eclipse
> > > project every time
> > > a nightly build comes out.
> > > I simply have an eclipse project tied to trunk
> and every so
> > > often i'll do an
> > > SVN update when I want/need the latest code.
> > >
> > > hope that helps some!
> > > Amit
> > >
> > > On Thu, Oct 15, 2009 at 2:31 AM, Brian Carmalt
> <bc...@contact.de>
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > I Start Solr with Jetty using the following
> code. If
> > > the classpath and
> > > > src paths are set correctly in Eclipse and
> you pass
> > > the solr.home to the
> > > > VM on startup, you just have to start this
> class and
> > > you can debug Solr
> > > > in Eclipse.
> > > >
> > > > <code>
> > > > import org.mortbay.jetty.Connector;
> > > > import org.mortbay.jetty.Server;
> > > > import
> org.mortbay.jetty.webapp.WebAppContext;
> > > >
> > > > public class JettyStarter {
> > > >
> > > >        /**
> > > >         *
> @param args
> > > >         */
> > > >        public static
> void
> > > main(String[] args) {
> > > >
> > > >
> > > try {
> > > >
> > > >
> > >         Server
> server = new
> > > Server(8888);
> > > >
> > > >
> > >     
>    WebAppContext solr = new
> > > WebAppContext();
> > > >
> > >     
>    solr.setContextPath("/solr");
> > > > solr.setWar("Path to solr directory or
> war");
> > > >
> > >     
>    server.addHandler(solr);
> > > >
> > >     
>    server.setStopAtShutdown(true);
> > > >
> > >     
>    server.start();
> > > >
> > > } catch (Exception e) {
> > > >
> > >         // TODO
> Auto-generated catch
> > > block
> > > >
> > >     
>    e.printStackTrace();
> > > >
> > > }
> > > >        }
> > > >
> > > > }
> > > >
> > > > </code>
> > > >
> > > >
> > > > Am Dienstag, den 13.10.2009, 16:43 -0700
> schrieb
> > > Pradeep Pujari:
> > > > > Hi All,
> > > > >
> > > > > I am trying to install solr nightly
> build into
> > > Eclipse IDE and facing lot
> > > > of issues while importing the zip file. The
> build
> > > path, libs and various
> > > > source files are scattered. It took me lot
> of tine to
> > > configure and make it
> > > > run.
> > > > >
> > > > > What development environment are being
> used and
> > > is there a smooth way of
> > > > importing daily-nightly build into eclipse?
> > > > >
> > > > > Please help.
> > > > >
> > > > > Thanks,
> > > > > Pradeep.
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
> 


Re: deploy solr in Eclipse IDE

Posted by Amit Nithian <an...@gmail.com>.
Hey Pradeep,
Check out
http://lucene.apache.org/solr/version_control.html#Anonymous+Access+%28read-only%29

<http://lucene.apache.org/solr/version_control.html#Anonymous+Access+%28read-only%29>If
you need more help with setting up Eclipse and Solr trunk send me an email.
I can send you my .project and .classpath files as I have it for my setup.

Take care
Amit

On Sun, Oct 18, 2009 at 11:34 AM, Pradeep Pujari <Pr...@rocketmail.com>wrote:

> Hi Amit,
> This is what I am looking for. Do you know the URL for trunk?
>
> Thanks,
> Pradeep.
>
> --- On Sun, 10/18/09, Amit Nithian <an...@gmail.com> wrote:
>
> > From: Amit Nithian <an...@gmail.com>
> > Subject: Re: deploy solr in Eclipse IDE
> > To: solr-dev@lucene.apache.org
> > Date: Sunday, October 18, 2009, 12:55 AM
> > I think you may have better luck
> > setting up Eclipse, Subclipse etc and hook
> > off of trunk rather than having to re-create the eclipse
> > project every time
> > a nightly build comes out.
> > I simply have an eclipse project tied to trunk and every so
> > often i'll do an
> > SVN update when I want/need the latest code.
> >
> > hope that helps some!
> > Amit
> >
> > On Thu, Oct 15, 2009 at 2:31 AM, Brian Carmalt <bc...@contact.de>
> > wrote:
> >
> > > Hello,
> > >
> > > I Start Solr with Jetty using the following code. If
> > the classpath and
> > > src paths are set correctly in Eclipse and you pass
> > the solr.home to the
> > > VM on startup, you just have to start this class and
> > you can debug Solr
> > > in Eclipse.
> > >
> > > <code>
> > > import org.mortbay.jetty.Connector;
> > > import org.mortbay.jetty.Server;
> > > import org.mortbay.jetty.webapp.WebAppContext;
> > >
> > > public class JettyStarter {
> > >
> > >        /**
> > >         * @param args
> > >         */
> > >        public static void
> > main(String[] args) {
> > >
> > >
> > try {
> > >
> > >
> >         Server server = new
> > Server(8888);
> > >
> > >
> >         WebAppContext solr = new
> > WebAppContext();
> > >
> >         solr.setContextPath("/solr");
> > > solr.setWar("Path to solr directory or war");
> > >
> >         server.addHandler(solr);
> > >
> >         server.setStopAtShutdown(true);
> > >
> >         server.start();
> > >
> > } catch (Exception e) {
> > >
> >         // TODO Auto-generated catch
> > block
> > >
> >         e.printStackTrace();
> > >
> > }
> > >        }
> > >
> > > }
> > >
> > > </code>
> > >
> > >
> > > Am Dienstag, den 13.10.2009, 16:43 -0700 schrieb
> > Pradeep Pujari:
> > > > Hi All,
> > > >
> > > > I am trying to install solr nightly build into
> > Eclipse IDE and facing lot
> > > of issues while importing the zip file. The build
> > path, libs and various
> > > source files are scattered. It took me lot of tine to
> > configure and make it
> > > run.
> > > >
> > > > What development environment are being used and
> > is there a smooth way of
> > > importing daily-nightly build into eclipse?
> > > >
> > > > Please help.
> > > >
> > > > Thanks,
> > > > Pradeep.
> > > >
> > > >
> > >
> > >
> >
>
>

Re: deploy solr in Eclipse IDE

Posted by Pradeep Pujari <Pr...@rocketmail.com>.
Hi Amit,
This is what I am looking for. Do you know the URL for trunk?

Thanks,
Pradeep.

--- On Sun, 10/18/09, Amit Nithian <an...@gmail.com> wrote:

> From: Amit Nithian <an...@gmail.com>
> Subject: Re: deploy solr in Eclipse IDE
> To: solr-dev@lucene.apache.org
> Date: Sunday, October 18, 2009, 12:55 AM
> I think you may have better luck
> setting up Eclipse, Subclipse etc and hook
> off of trunk rather than having to re-create the eclipse
> project every time
> a nightly build comes out.
> I simply have an eclipse project tied to trunk and every so
> often i'll do an
> SVN update when I want/need the latest code.
> 
> hope that helps some!
> Amit
> 
> On Thu, Oct 15, 2009 at 2:31 AM, Brian Carmalt <bc...@contact.de>
> wrote:
> 
> > Hello,
> >
> > I Start Solr with Jetty using the following code. If
> the classpath and
> > src paths are set correctly in Eclipse and you pass
> the solr.home to the
> > VM on startup, you just have to start this class and
> you can debug Solr
> > in Eclipse.
> >
> > <code>
> > import org.mortbay.jetty.Connector;
> > import org.mortbay.jetty.Server;
> > import org.mortbay.jetty.webapp.WebAppContext;
> >
> > public class JettyStarter {
> >
> >        /**
> >         * @param args
> >         */
> >        public static void
> main(String[] args) {
> >
> >               
> try {
> >
> >               
>         Server server = new
> Server(8888);
> >
> >               
>         WebAppContext solr = new
> WebAppContext();
> >               
>         solr.setContextPath("/solr");
> > solr.setWar("Path to solr directory or war");
> >               
>         server.addHandler(solr);
> >               
>         server.setStopAtShutdown(true);
> >               
>         server.start();
> >               
> } catch (Exception e) {
> >               
>         // TODO Auto-generated catch
> block
> >               
>         e.printStackTrace();
> >               
> }
> >        }
> >
> > }
> >
> > </code>
> >
> >
> > Am Dienstag, den 13.10.2009, 16:43 -0700 schrieb
> Pradeep Pujari:
> > > Hi All,
> > >
> > > I am trying to install solr nightly build into
> Eclipse IDE and facing lot
> > of issues while importing the zip file. The build
> path, libs and various
> > source files are scattered. It took me lot of tine to
> configure and make it
> > run.
> > >
> > > What development environment are being used and
> is there a smooth way of
> > importing daily-nightly build into eclipse?
> > >
> > > Please help.
> > >
> > > Thanks,
> > > Pradeep.
> > >
> > >
> >
> >
> 


Re: deploy solr in Eclipse IDE

Posted by Amit Nithian <an...@gmail.com>.
I think you may have better luck setting up Eclipse, Subclipse etc and hook
off of trunk rather than having to re-create the eclipse project every time
a nightly build comes out.
I simply have an eclipse project tied to trunk and every so often i'll do an
SVN update when I want/need the latest code.

hope that helps some!
Amit

On Thu, Oct 15, 2009 at 2:31 AM, Brian Carmalt <bc...@contact.de> wrote:

> Hello,
>
> I Start Solr with Jetty using the following code. If the classpath and
> src paths are set correctly in Eclipse and you pass the solr.home to the
> VM on startup, you just have to start this class and you can debug Solr
> in Eclipse.
>
> <code>
> import org.mortbay.jetty.Connector;
> import org.mortbay.jetty.Server;
> import org.mortbay.jetty.webapp.WebAppContext;
>
> public class JettyStarter {
>
>        /**
>         * @param args
>         */
>        public static void main(String[] args) {
>
>                try {
>
>                        Server server = new Server(8888);
>
>                        WebAppContext solr = new WebAppContext();
>                        solr.setContextPath("/solr");
> solr.setWar("Path to solr directory or war");
>                        server.addHandler(solr);
>                        server.setStopAtShutdown(true);
>                        server.start();
>                } catch (Exception e) {
>                        // TODO Auto-generated catch block
>                        e.printStackTrace();
>                }
>        }
>
> }
>
> </code>
>
>
> Am Dienstag, den 13.10.2009, 16:43 -0700 schrieb Pradeep Pujari:
> > Hi All,
> >
> > I am trying to install solr nightly build into Eclipse IDE and facing lot
> of issues while importing the zip file. The build path, libs and various
> source files are scattered. It took me lot of tine to configure and make it
> run.
> >
> > What development environment are being used and is there a smooth way of
> importing daily-nightly build into eclipse?
> >
> > Please help.
> >
> > Thanks,
> > Pradeep.
> >
> >
>
>

Re: deploy solr in Eclipse IDE

Posted by Brian Carmalt <bc...@contact.de>.
Hello,

I Start Solr with Jetty using the following code. If the classpath and
src paths are set correctly in Eclipse and you pass the solr.home to the
VM on startup, you just have to start this class and you can debug Solr
in Eclipse.

<code>
import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.webapp.WebAppContext;

public class JettyStarter {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		try {

			Server server = new Server(8888);

			WebAppContext solr = new WebAppContext();
			solr.setContextPath("/solr"); 			
solr.setWar("Path to solr directory or war");
			server.addHandler(solr);
			server.setStopAtShutdown(true);
			server.start();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}

</code>


Am Dienstag, den 13.10.2009, 16:43 -0700 schrieb Pradeep Pujari:
> Hi All,
> 
> I am trying to install solr nightly build into Eclipse IDE and facing lot of issues while importing the zip file. The build path, libs and various source files are scattered. It took me lot of tine to configure and make it run. 
> 
> What development environment are being used and is there a smooth way of importing daily-nightly build into eclipse?
> 
> Please help.
> 
> Thanks,
> Pradeep. 
> 
>