hello,
i dint get what i required on that URL.
i want system to run the jar file ,no manual cammands or instructions to run the
jar file
i tried with
Runtime.getRuntime().exec(schpass);where schpass is a string for which a jar file is assigned ,But that doesnot do for me.
i wonder is there any options to execute...
Try this,
Runtime.getRuntime().exec( "cmd /c C:\\jdk1.5.0_03\\bin<br clear="all" />javaw -classpath C:\\location_of_jar<br clear="all" />your_jar_file.jar; com.MainClassPackageAndName");Remember to put the correct location of your JDK bin directory and jar directory and ur proper class path.
If your need to get the output streams of this jar then u'll need some more code, just give me a shout.