I have the following code
/*
WinTest.java
*/
import java.io.*;
public class WinTest {
public static void main (String args[]) {
String line;
Process backgroundProcess;
try {
// Start the other process
backgroundProcess = Runtime.getRuntime().exec
("d:\\program files\\cprog.exe");
}
catch (Exception e) {
System.out.println(e);
}
}
}
If I execute the class file from a cmd windown I get the start up
screen from the cprog.exe, however as I would like to dispense with
the dos window I packaged the class into a jar file
First creating a text file called WinTest.txt containin the single
line
Main-Class: WinTest
Then create the jar file
jar cmf WinTest app.jar WinTest.class
I associated the jar file with the java.exe in the SDK lib
But when I double click to execute the jar file a dos window pops up
disappears but no start screen from the cprog.exe is shown
I'm sure it is a severe user error must I have to admit to being
stumped and help would be nuch appreciated