I have a java program, where i can open a Internet Explorer or Any Browser.
using Runtime.getRuntime().exec(cmd);
But I want to open a browser from my java program mentioning url and post parameter.
First of all, is this possible? How can i achieve this?
You can appled the URL to the command line parameter for example in IE:
Firefox:
and Chrome:
Works on windows, you will need to replace
C:\Windows\System32>"C:\Program Files (x86)\Google\Chrome\Applicationwith the the location of the application in your environment