title: a jetty server app can work in eclipse but can't in Windows Console?
body: <p>I use Maven to built up a project,that contains only one Class-"App" with a "main" method,
  the codes as follows:</p>
  
  <pre><code>org.eclipse.jetty.server.Server server = new Server();
  WebAppContext webContext = new WebAppContext("D:/webroot/webapp", "/web");
  server.setHandler(webContext);
  server.start();
  System.in.read();
  </code></pre>
  
  <p>This App can work properly in eclipse,and the webpage(jsp) can be browsed in Chrome.</p>
  
  <p>Then I export this project to a "Runnable JAR file" use the options "Package required libraries into generated JAR",and after I run the jar file in Windows Console:
  java -jar app.jar</p>
  
  <p>The App can runing,but when I use Chrome to browse the webpage(jsp),it tell me an error:</p>
  
  <p>HTTP ERROR 500
  Problem accessing /web/. Reason:
  java.err.nojdk
  Caused by:</p>
  
  <p>org.apache.jasper.JasperException: java.err.nojdk
  at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:89)
  at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:375)
  at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
  at org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:198)
  at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:364)</p>
  
  <p>So how to make the jetty server app runing without eclipse?</p>