Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > runtime.exec fails on XP

Reply
Thread Tools

runtime.exec fails on XP

 
 
CDJ
Guest
Posts: n/a
 
      07-08-2003
Hi,
I have a problem with runtime.exec on XP. it works fine on W2K.
I get no exit value as the process does not get created.

Anyone got any ideas.I am doing this to get hold of the parameters passed from html

thanks
CDJ

public static final String Cmd = "cmd /c set";
Runtime runtime = Runtime.getRuntime();
Process pid;
try
{
pid = runtime.exec(Cmd);
}
catch (IOException e)
{
System.out.println("Content-Type: text/html");
System.out.println("Picture download failed:S");
System.out.println("<br>");
System.out.println(e.getMessage());
System.out.println("<br>");
System.out.println(e.toString());
e.printStackTrace(System.out);
System.out.flush();
throw e;
}

CreateProcess
java.io.IOException: CreateProcess

java.io.IOException: CreateProcess
at java/lang/Win32Process.shellExec
at java/lang/Win32Process.
at java/lang/Runtime.execInternal
at java/lang/Runtime.exec
at java/lang/Runtime.exec
at Environment.
at Packager.GetUser
at Packager.main
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Constant.t fails 240 of 272 tests and recurs.t fails 1 of 25 tests on HPUX using perl 5.8.7 dayo Perl Misc 11 12-16-2005 09:09 PM
slideshow fails, Firefox debugger also fails lkrubner@geocities.com Javascript 2 12-23-2004 06:22 PM
Wireless Zero Configuration Servoce fails to start andrew Wireless Networking 0 07-28-2004 03:08 PM
IAS fails with certs from Stand Alone CA Harrison Midkiff Wireless Networking 2 07-22-2004 09:45 PM
Forms Authentication Fails Between ASP.NET 1.0 and 1.1 Applications (Cookie Decryption Fails) John Saunders ASP .Net 1 11-18-2003 03:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57