Hi: Can you please check that eclipse is using a JDK and not a JRE?
See this blog for more details: http://albertattard.blogspot.com/2009/08/jsp-compile-error-in-eclipse.html Hope this helps, Albert Attard Joan Crawford<http://www.brainyquote.com/quotes/authors/j/joan_crawford.html> - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." 2009/8/20 Keith Platfoot <[email protected]> > Hm, that is odd. Since you're able to use javac from the command line and > via appcfg, I'm assuming the problem does lie with Eclipse and the > permissions it was launched with. > Would it be possible for you to write a small test Java app that uses > ProcessBuilder<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ProcessBuilder.html>to > invoke javac? If your test app fails with an Access Denied error, then > at least we can rule out the plugin and App Engine as the source of the > problem. If that is indeed the case, you could try installing another JDK > and Eclipse instance using your user account, and see if that fixes things. > > Keith > On Wed, Aug 19, 2009 at 2:35 PM, Abhinav Lele <[email protected]>wrote: > >> Hi Keith, >> >> Well I was able to upload it using appcfg from the command line :) .. >> Though I wonder why eclipse is getting a access denied error. >> My user account has administrator privileges. >> >> -- >> Abhinav >> >> >> On Wed, Aug 19, 2009 at 8:49 PM, Keith Platfoot <[email protected]>wrote: >> >>> Hi Abhinav, >>> I suspect the problem may be exactly as the error message implies: access >>> to javac is being denied because of its configured permissions. >>> >>> To test that theory, could you try running javac from a command prompt, >>> using the path from the exception message? If you are able to run it, javac >>> should display its usage options (since you didn't specify any arguments). >>> However, if you also get an Access Denied error from the command line, then >>> the problem is not with Eclipse or the plugin, but with the permissions on >>> javac. One scenario that might produce this error would be if you installed >>> the JDK as an Administrator and then run javac (either manually from the >>> command line or indirectly via Eclipse) as a regular (non-admin) user. >>> >>> Let me know if you are able to reproduce the problem from the command >>> line. Thanks, >>> >>> Keith >>> >>> On Wed, Aug 19, 2009 at 5:03 AM, Abhinav Lele <[email protected]>wrote: >>> >>>> Hi, >>>> >>>> I am using Eclipse 3.5 ( Galilieo ) on Windows XP to deploy my >>>> application. It runs fine on my local machine but when I try to deploy it >>>> to >>>> appengine it is giving me the following error. >>>> >>>> >>>> Creating staging directory >>>> Scanning for jsp files. >>>> Compiling jsp files. >>>> Compiling java files. >>>> java.io.IOException: Cannot run program "D:\usr\dev\jdk16_12\bin\javac": >>>> CreateProcess error=5, Access is denied >>>> >>>> Debugging information may be found in C:\Documents and >>>> Settings\user\Local Settings\Temp\appengine-deploy6738175632278023548.log >>>> >>>> appengine-deploy6738175632278023548.log >>>> >>>> Unable to upload: >>>> java.io.IOException: Cannot run program "D:\usr\dev\jdk16_12\bin\javac": >>>> CreateProcess error=5, Access is denied >>>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) >>>> at >>>> com.google.appengine.tools.admin.Application.startProcess(Application.java:434) >>>> at >>>> com.google.appengine.tools.admin.Application.compileJavaFiles(Application.java:393) >>>> at >>>> com.google.appengine.tools.admin.Application.compileJsps(Application.java:361) >>>> at >>>> com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:237) >>>> at >>>> com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:51) >>>> at >>>> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:271) >>>> at >>>> com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148) >>>> at >>>> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) >>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) >>>> Caused by: java.io.IOException: CreateProcess error=5, Access is denied >>>> at java.lang.ProcessImpl.create(Native Method) >>>> at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) >>>> at java.lang.ProcessImpl.start(ProcessImpl.java:30) >>>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) >>>> ... 9 more >>>> >>>> >>>> >>>> However if I remove the jsp file from the war folder the deployment >>>> works fine. FYI, the jsp is an empty file. Can someone suggest what is >>>> going >>>> wrong ??? >>>> >>>> >>>> -- >>>> Abhinav >>>> >>>> >>> >>> >>> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
