cancel
Showing results for 
Search instead for 
Did you mean: 

Open Web browser in CLM with script

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

import java.io.*;

import java.util.*;