The Artima Developer Community
Sponsored Link

Java Answers Forum
Invoking a browser(IE/netscape) through Java Stand Alone Application

1 reply on 1 page. Most recent reply: Apr 24, 2003 10:38 PM by Dhrubo

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
savitha

Posts: 1
Nickname: guldoo
Registered: Apr, 2003

Invoking a browser(IE/netscape) through Java Stand Alone Application Posted: Apr 24, 2003 3:23 AM
Reply to this message Reply
Advertisement
Can anybody help me in opening a new window(not inside frame) of the browser(IE/netscape) with a specified url.
eg. http://172.16.1.125:8500
on a click of a button. not through applet only through standalone application.


Dhrubo

Posts: 32
Nickname: dhrubo
Registered: Mar, 2003

Re: Invoking a browser(IE/netscape) through Java Stand Alone Application Posted: Apr 24, 2003 10:38 PM
Reply to this message Reply
Hey this is the code

//Tested in WIN200 PROFESSIONAL SERVER

import java.io.*;

class IETest
{

public static void main(String args[]) throws Exception
{

try {
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("cmd /c start iexplore www.yahoo.com");
} catch(Exception e) {
System.out.println(e);
}



}//main








}//IETest

Flat View: This topic has 1 reply on 1 page
Topic: Passing a class to a class Previous Topic   Next Topic Topic: B_TREES

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use