to launch netscape from a java GUI on Windows NT
Hi!I have some problems to launch netscape from my application. I searched and tried some tracks but it was unsuccessful. If someone could help me, I thank him by advance. Muriel
import java.io.*;
public class Tryout {
public Tryout() {
}
public void go() {
Runtime rt = Runtime.getRuntime();
try {
Process newProcess = rt.exec("C:\\Program
Files\\Netscape\\netscape.exe c:\\PathofMyForm\\MyForm.html" );
}
catch (IOException ioe) {
}
}
public static void main(String[] args) {
Tryout tryout = new Tryout();
tryout.go();
}
}
// see Process and Runtime classes for other methods.
// the format of Runtime.exec(String command) is:
// rt.exec("c:\PathOfNetscape.Exe C:\PathOfFile");
// Hope this helps.
// Justin
Hi jmschrei!I thank you, I didn't expect to receive an answer so quickly. I do not tryi it yet but I will reply this mail again to give the results. Otherwise, if it doesn't work, I thank you to give me a track to explore.Cheers,Muriel
Hi jsalonen!I thank you a lot. I didn't expect to receive an answer so quickly. I will try this. When I will have results, I will send another mail. Cheers,Muriel