diff --git a/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java b/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java index c98bbb427e5..d03b2b2f3d2 100644 --- a/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java +++ b/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java @@ -804,9 +804,13 @@ public class JettySolrRunner { /** * A main class that starts jetty+solr This is useful for debugging */ - public static void main(String[] args) throws Exception { + public static void main(String[] args) { + try { JettySolrRunner jetty = new JettySolrRunner(".", "/solr", 8983); jetty.start(); + } catch (Exception ex) { + ex.printStackTrace(); + } } /**