E
epicwinter
I am trying to automatically open a url from the default browser from a
java application. I can open a url in the browser no problem. I have
looked at the commonly sited articles here:
http://dmoz.org/Bookmarks/D/deadsea/Java_Help/Web_Browser/
For windows xp I use this command:
commandArgs = new String[3];
commandArgs[0] = "cmd.exe";
commandArgs[1] = "/C";
commandArgs[2] = absoluteFileName;
Runtime.getRuntime().exec(commandArgs);
If I am trying to open c:\myhtmlfile.html it works great.
But when I try to open it c:\myhtmlfile.html?parameter1=ABCD
It does not work. I have tried every possible way to do this and the
closest I get it to working is it just opens the page without the
parameter. I can not figure out how to open it with a parameter.
Please advise, thanks
-ryan
java application. I can open a url in the browser no problem. I have
looked at the commonly sited articles here:
http://dmoz.org/Bookmarks/D/deadsea/Java_Help/Web_Browser/
For windows xp I use this command:
commandArgs = new String[3];
commandArgs[0] = "cmd.exe";
commandArgs[1] = "/C";
commandArgs[2] = absoluteFileName;
Runtime.getRuntime().exec(commandArgs);
If I am trying to open c:\myhtmlfile.html it works great.
But when I try to open it c:\myhtmlfile.html?parameter1=ABCD
It does not work. I have tried every possible way to do this and the
closest I get it to working is it just opens the page without the
parameter. I can not figure out how to open it with a parameter.
Please advise, thanks
-ryan