Hi Keith,
You were right. I created a Java Project and ran the following code
package testB;
import java.io.IOException;
public class testJ {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
ProcessBuilder proc = new
ProcessBuilder("D:\\usr\\dev\\jdk16_12\\bin\\javac"
);
proc.start();
}
}
and I got a Exception in thread "main" 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 testB.testJ.main(testJ.java:15)
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)
... 1 more
I'll try and google this out. If someone has solution for this please let me
know.
--
Abhinav
On Thu, Aug 20, 2009 at 8:37 PM, Keith Platfoot <[email protected]>wrote:
> 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
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
> >
>
--
Stephen
Leacock<http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html>
- "I detest life-insurance agents: they always argue that I shall some
day
die, which is not so."
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---