how to open web browser through java program in linuxz
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mandar_Pohnerkar
Posted On:   Friday, June 14, 2002 11:37 PM

hello, how do i open a web browser in linux through java program.? with the following code ,I can open a web browser (IE) in windows ,but same code fails to open any web browser in linux? try{ Runtime.getRuntime.exec("c:Program FilesInternet ExploreIEXPLORE http://www.hotmail.com");); } catch(Exception e){} so if i chage the parameters in exex() as exec("file:/usr/share/doc/HTML/index.html http://www.rediff.com"); this gives IOException .How do i overcome this problem? Thanking you Mandar    More>>

			
hello,
how do i open a web browser in linux through java program.?
with the following code ,I can open a web browser (IE) in windows ,but same code
fails to open any web browser in linux?

try{
Runtime.getRuntime.exec("c:Program FilesInternet ExploreIEXPLORE http://www.hotmail.com"););
}
catch(Exception e){}

so if i chage the parameters in exex() as
exec("file:/usr/share/doc/HTML/index.html http://www.rediff.com");
this gives IOException .How do i overcome this problem?

Thanking you
Mandar

   <<Less

Re: how to open web browser through java program in linuxz

Posted By:   Stephen_Ostermiller  
Posted On:   Tuesday, July 2, 2002 08:32 AM

Browser Utility - Class to launch a URL in a web browser in
a platform independent manner. Includes an optional swing
GUI allowing user customization. [Open Source - GPL]

http://ostermiller.org/utils/Browser.html


BrowserLauncher - Open the system web browser with
particular attention paid to various Macintosh systems.
(Freeware)

http://browserlauncher.sourceforge.net/


Java World - With a little platform-specific Java code, you
can easily use your system's default browser to display any
URL in Windows or Unix.

http://www.javaworld.com/javaworld/javatips/jw-javatip66.html


JConfig - Class Libraries that allow a URL to be launched in
a browser on Windows, Unix, or Macintosh. [Commercial]

http://www.tolstoy.com/samizdat/jconfig.html


Apple - MRJFileUtils.openURL() not implemented in Mac OS X.

http://www.tolstoy.com/samizdat/jconfig.html">http://developer.apple.com/qa/java/java12.html">http://www.tolstoy.com/samizdat/jconfig.html

About | Sitemap | Contact