How to launch the default web browser

I would like to have my Java application launch the user's default browser in response to the user selecting support from my help menu.

I am currently doing this by exec ing the iexplore.exe with a full path. I would like to do this without a full path and even better would be to launch the defualt browser without a hard coded path. I am primarily interested in doing this on 98 and NT, but it would be real nice to do this with platform independence.

Anybody got a good idea to launch the registered default browser on the system?

The simpler, the better.

Thanks
kmenzelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ravindra76Commented:
Hi ,

See this info

Java Tip 66: Control browsers from you Java application
http://www.javaworld.com/javaworld/javatips/jw-javatip66.html 
http://tactika.com/realhome/javaht/java-f1.html#f20 

Best of luck
0
sen_kumCommented:
You can exec like the following

Runtime.exec( "Start htmlfile.html" ) ;

it starts the default browser in win95 and nt
0
sen_kumCommented:
You can exec like the following

Runtime.exec( "Start htmlfile.html" ) ;

it starts the default browser in win95 and nt
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

kmenzelAuthor Commented:
It didn't seem to work in NT I had to preface start with cmd.exe /c. Not problem though. I am now checking the OS and doing this only for NT. Things work well.

Thanks.
0
shaveriCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kmenzelAuthor Commented:
Thank you ALL for the information. I wish I could give credit to all of you.

Thanks,
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.