Solved

Launch a URL from a Java application?

Posted on 1998-07-15
1
303 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues undeā€¦
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilationā€¦
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

630 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