Solved

Launch a URL from a Java application?

Posted on 1998-07-15
1
297 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
[X]
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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

756 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