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. 
> 
> 

Reply via email to