[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

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
0
kmenzel
Asked:
kmenzel
1 Solution
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
 
kmenzelAuthor Commented:
Thank you ALL for the information. I wish I could give credit to all of you.

Thanks,
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now