Article View: borland.public.jbuilder.java.language
Article #14775Re: spawning other programs?
From: peter
Date: Fri, 30 Jul 1999 00:00
Date: Fri, 30 Jul 1999 00:00
23 lines
1104 bytes
1104 bytes
there are other ways, but this works as well.....Peter
try{
Runtime rt = Runtime.getRuntime();
String address = "www.bubu.com";
rt.exec("start " + address);
}
catch( Exception e){
e.printStackTrace();
}
colinw wrote:
> I have an application that I would like to be able to spawn the local
> browser from and direct it to a particular site.
>
> 1. Does anyone know how to do this in java?
> 2. How can you determine what the preferred local browser is?
>
> Any help would be greatly appreciated.
>
> colin wilson
Technical Details
Message-ID:
<37A1DA70.27FC9A7B@terren.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37A10ADC.53B017FE@mis.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e5863a3a5db59730 X-Google-Attributes: gidf74b3,public From: peter <peter@terren.com> Subject: Re: spawning other programs? Date: 1999/07/30 Message-ID: <37A1DA70.27FC9A7B@terren.com> X-Deja-AN: 507017539 Content-Transfer-Encoding: 7bit References: <37A10ADC.53B017FE@mis.net> 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