on 08-19-2011 12:55 AM
Hi Experts,
I have a requirement to write the script to open the web broswer in CLM Application in Toolbar
I am using the below Java code but its not working, I believe I am missing something or this one should be bean Shell Script.
import java.io.;*
import java.util.;*
try {
String[] cmd = new String[4];
cmd[0] = "cmd.exe";
cmd[1] = "/C";
cmd[2] = "start";
cmd[3] ="http://www.google.com/";
System.out.println("HCLGE cmd"+cmd);
Process p = Runtime.getRuntime().exec(cmd);
System.out.println("HCLGE cmd1"+cmd);
Process process = Runtime.getRuntime().exec("notepad");
System.out.println("HCLGE cmd2"+cmd);
} catch (IOException ioe)
{
ioe.printStackTrace();
}
Please suggest what should be change in the code.
Many Thanks
Iqbal
import java.io.*;
import java.util.*;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.