Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Launch a URL from a Java application?

Posted on 1998-07-15
1
294 Views
Last Modified: 2010-04-16
Hi,

I have a Java application (Windows, UNIX), and I would like it to launch an HTML page in a browser.

How can I do this?  

Thanks,

Alex.
0
Comment
Question by:akoifman
1 Comment
 
LVL 5

Accepted Solution

by:
fontaine earned 100 total points
ID: 1226601
There are several possibilities:

1/ launch Netscape or another browser as an external process, passing it on the command
line the URL to display in the browser window. I.e. for example:

netscape.exe http://www.experts-exchange.com

2/ Use one of the Java browser implementation available on the market such as ICE.
(http://www.icesoft.no/ICEBrowser/). I think there is a free license for personal or academic
use.

3/ Use the Swing/JFC library that contains an HTML panel. The library works with JDK 1.1
and will be part of the JDK 1.2 release. You can downoad it for free from here:
http://www.javasoft.com/products/jfc/index.html


0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question