Name: gm110360 Date: 08/14/2003
A DESCRIPTION OF THE REQUEST :
If for nothing else besides directing users to your home page or support page on the web, almost all applications need (or could use) the ability to open a web page. Unfortunately, this currently requires a fair amount of platform specific code to implement in Java. It would be great if Java included a universal mechanism to launch the user's default web browser.
For example:
System.browser.open("http://spam.abuse.net/overview/spambad.shtml");
An error code could be returned if the platform did not support the feature or if Java was unable to locate a browser.
JUSTIFICATION :
Such a universal browser launch feature would make it easier to write cross-platform pure Java applications.
Please see:
http://forum.java.sun.com/thread.jsp?forum=57&thread=314979
http://forum.java.sun.com/thread.jsp?forum=57&thread=247320
http://forum.java.sun.com/thread.jsp?forum=57&thread=254067
---------- BEGIN SOURCE ----------
public class BroswerLaunch {
public static void main(String[] argv) {
System.browser.open("http://spam.abuse.net/overview/spambad.shtml");
}
}
---------- END SOURCE ----------
(Incident Review ID: 189088)
======================================================================
- relates to
-
JDK-4210168 Add a system method for launching the user's default browser
- Closed