JDK-4906974 : Universal Browser Launch
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-08-14
  • Updated: 2003-08-15
  • Resolved: 2003-08-15
Related Reports
Relates :  
Description

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) 
======================================================================

Comments
EVALUATION Oops. Closed as duplicate of incorrect bug. It should have been 4210168. I've manually added a customer call record for this bug. -- iag@sfbay 2003-08-15
15-08-2003