how to shell execute

Hello,does anybody know how to lanch my os browser with an html page from my hard disk? For example launch internet explorer with a file i've just saved called Myfile.htm....Thanks in advanceBernard
[234 byte] By [bracoute] at [2007-9-27 13:57:32]
# 1
HiNot exaxctly but Try RunTime ClassAnd pass path of browser exe as a parameter in that.something like that System.getRunTime("path of Brwser exe");Write me back if cpold not help i will gice u the exact code ?have a nice dayVirender
s_virender at 2007-7-5 21:46:53 > top of Java-index,Archived Forums,Swing...
# 2
Besides Runtime class, it will be safe to use Process class and use the waitFor() method. This will prevent too many processes runing.
mytong2 at 2007-7-5 21:46:53 > top of Java-index,Archived Forums,Swing...
# 3

If you're using Windows, have a look at Jacob:

http://users.rcn.com/danadler/jacob/

With Jacob you can use OLE automation to do it, this code navigates to localhost:

ActiveXComponent comp = new ActiveXComponent "InternetExplorer.Application" );

comp.setProperty( "Visible", new Variant(true) );

comp.invoke( "Navigate", new Variant[]{ new Variant("http://localhost") } );

This means you can leave the one browser window open and navigate to different locations.

cgarethc at 2007-7-5 21:46:53 > top of Java-index,Archived Forums,Swing...
# 4
try these links: http://www.croftsoft.com/library/tutorials/browser/ http://browserlauncher.sourceforge.net/
Y_NOT at 2007-7-5 21:46:53 > top of Java-index,Archived Forums,Swing...
# 5
Try:Process p = Runtime.getRuntime().exec("the shell command an parameters");That should take care of it.
vanderpj at 2007-7-5 21:46:53 > top of Java-index,Archived Forums,Swing...
# 6
Again i thank everyone
bracoute at 2007-7-5 21:46:53 > top of Java-index,Archived Forums,Swing...