Click to See Complete Forum and Search --> : platform problem


Gremlin
September 18th, 2000, 02:51 PM
Is there a non platform specific way to call a java program from a java program. The code below works for win98 but not for Linux.

(jdk is the path of the JDK typed in by the user)


try
{
Process ps = Runtime.getRuntime().exec(jdk+fileSep+"javaw -jar Calculator.jar");
}
catch (Exception err) {}

Jprisco
September 19th, 2000, 01:14 AM
Im not too sure about this but are you sure the jar file is on the CLASSPATH....

52901368