Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Launch a URL from a Java application?

Posted on 1998-07-15
1
Medium Priority
?
311 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 300 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

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…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

824 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