File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Link to HTML File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Link to HTML File" Watch "Link to HTML File" New topic

Link to HTML File

Klaus Linzner

Joined: Aug 22, 2003
Posts: 7
I' sorry to bother with this question, but I really have no idea hot to do this:
I wrote a Java Programm and for a kind of bug report I did a Website, where you can report bugs and place wishes.
But how can I link to the URL, that it'll be started in the Systems default Web browser?
Please help, thanks, Klausi
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Assuming you have a Java client that wants to open a browser on the same PC ... In Windows my favorite technique uses rundll32. Here's a class that does this and way too other many things with browsers in all operating systems:

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Intermediate forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Link to HTML File
jQuery in Action, 3rd edition