The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

exec call

Posted by Erich Teppan on October 22, 2001 at 8:47 AM

i think, it doesn't works beause "/" is a special sign. to make the compiler accepting it, you have to put "//".Like

try{
Runtime.getRuntime().exec(
"c://pathname//java.exe -jar MyPgm.jar");
}
catch(IOException ioe){ioe.printStackTrace();}

ERich




Replies:
  • exec call Matt Gerrans October 22, 2001 at 5:47 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us