Skip to Content
avatar image
Former Member

Open Web browser in CLM with script

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 24, 2011 at 05:58 PM

    import java.io.*;

    import java.util.*;

    Add comment
    10|10000 characters needed characters exceeded