Solved

Launch a URL from a Java application?

Posted on 1998-07-15
1
292 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mergeTwo  challenge 13 70
countHi challenge 25 84
countHi2 challenge 7 43
Securing Jmx Console and web console 2 45
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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:

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now