🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15761

Invoke a browser on a Macintosh?

#15761
From: Phillipus
Date: Wed, 28 Apr 1999 00:00
15 lines
908 bytes
Hi!

Does anyone know how to invoke a browser (say, Netscape) on a Mac in a
Java app?  I know how to do it for Windows:

                String url = "http://www.wherever.com";
                String cmd = "rundll32 url.dll,FileProtocolHandler " +
url;
                Process p = Runtime.getRuntime().exec(cmd);

So what would be the equivalent on a Mac?

Cheers.

Phil
Technical Details
Message-ID: <3726E93C.8AFA4378@bangor.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,cf14baa8de46b726,start
X-Google-Attributes: gidf74b3,public
From: Phillipus <p.beauvoir@bangor.ac.uk>
Subject: Invoke a browser on a Macintosh?
Date: 1999/04/28
Message-ID: <3726E93C.8AFA4378@bangor.ac.uk>
X-Deja-AN: 471835308
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language