Results 1 to 1 of 1
Hi all,
I want to issue a command within java program to start mozilla firefix browser. Idea is I want to get a image of a web site using firefox ...
- 12-18-2008 #1Just Joined!
- Join Date
- Dec 2008
- Posts
- 3
start firefox using java
Hi all,
I want to issue a command within java program to start mozilla firefix browser. Idea is I want to get a image of a web site using firefox and pearl cresent page server. In windows I can do this my issuing
String firefox = "C:\\Program Files\\Mozilla Firefox\\firefox.exe";
String option = "-P swf -width 800 -height 300 -savedelay 5000";
String cmd = firefox + " -saveimage " + url + " " + option;
Process p = Runtime.getRuntime().exec(cmd);
p.waitFor();
What are the changes I should do to this code (apart from the changing the firefox location) to make this work on linux (SUSE for this instance).
Plz help guys..
Thanks in advance,
fish


Reply With Quote