Hi: Eclipse requires a JDK to compile the JSPs as its default JRE. See the following blog for details: http://albertattard.blogspot.com/2009/08/jsp-compile-error-in-eclipse.html
<http://albertattard.blogspot.com/2009/08/jsp-compile-error-in-eclipse.html>Hope this helps, Albert Attard Ted Turner <http://www.brainyquote.com/quotes/authors/t/ted_turner.html> - "Sports is like a war without the killing." 2009/8/19 yanfabin <yanfa...@gmail.com> > > i simply new a Guestbook project without GWT, then new a guestbook.jsp > in the war folder. no errors at the eclipse edit area(my ide: Eclipse > 3.4 (Ganymede) ), but a red "X" on war/guestbook.jsp in the package > explorer. when visit guestbook.jsp, i got the flowing: > > SEVERE: Javac exception > Error running javac.exe compiler > at > > org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile > (DefaultCompilerAdapter.java:473) > at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute > (JavacExternal.java:47) > at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) > at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) > at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java: > 382) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) > at org.apache.jasper.JspCompilationContext.compile > (JspCompilationContext.java:511) > at org.apache.jasper.servlet.JspServletWrapper.service > (JspServletWrapper.java:295) > at org.apache.jasper.servlet.JspServlet.serviceJspFile > (JspServlet.java:292) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > at com.google.appengine.tools.development.PrivilegedJspServlet.access > $101(PrivilegedJspServlet.java:23) > at com.google.appengine.tools.development.PrivilegedJspServlet$2.run > (PrivilegedJspServlet.java:59) > at java.security.AccessController.doPrivileged(Native Method) > at com.google.appengine.tools.development.PrivilegedJspServlet.service > (PrivilegedJspServlet.java:57) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1093) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter > (TransactionCleanupFilter.java:43) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at com.google.appengine.tools.development.StaticFileFilter.doFilter > (StaticFileFilter.java:124) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:360) > at org.mortbay.jetty.security.SecurityHandler.handle > (SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle > (SessionHandler.java:181) > at org.mortbay.jetty.handler.ContextHandler.handle > (ContextHandler.java:712) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 405) > at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle > (DevAppEngineWebAppContext.java:54) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at com.google.appengine.tools.development.JettyContainerService > $ApiProxyHandler.handle(JettyContainerService.java:313) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:313) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 506) > at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete > (HttpConnection.java:830) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) > at org.mortbay.io.nio.SelectChannelEndPoint.run > (SelectChannelEndPoint.java:396) > at org.mortbay.thread.BoundedThreadPool$PoolThread.run > (BoundedThreadPool.java:442) > Caused by: java.io.IOException: Cannot run program "javac.exe": > CreateProcess error=2, ????????? > at java.lang.ProcessBuilder.start(Unknown Source) > at java.lang.Runtime.exec(Unknown Source) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > can anyone give a help? thanks! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---