Results 1 to 4 of 4
  1. #1
    loa41 is offline Member
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Default how to open an internet Window

    Hi,

    I need in my program to open a window internet to a link.

    I don't know at all with class & functions I have to use.

    Can you help me.
    Thanks

  2. #2
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    7

    Default Give this a try...

    The command that you probably will be wanting to run would be:

    iexplore.exe "your URL link goes here"... for example:
    iexplore.exe "www.yahoo.com"

    Here's a post that explains what is needed:

    http://www.java-forums.org/java-tips...a-program.html

    .. and some other links with examples:

    Execute an external program - Real's Java How-to
    How to run external .exe programs from java - Java

    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  3. #3
    fxRichard is offline Member
    Join Date
    Dec 2008
    Posts
    64
    Rep Power
    0

    Default

    or you can use javax.awt.Desktop.browse(someURI);
    Please keep in mind this is ONLY supported in java 1.6+

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. My first post, how to open 2nd window?
    By Grom in forum NetBeans
    Replies: 6
    Last Post: 08-17-2008, 03:00 AM
  2. How to close an open JFrame window from a jsp page?
    By kasisaiganesh in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 05-27-2008, 06:29 PM
  3. Drive letter sniff/open explorer window
    By iiz in forum New To Java
    Replies: 1
    Last Post: 04-04-2008, 03:50 AM
  4. Internet Explorer is unable to open Office documents from an SSL Web site
    By pramod@netedgecomputing.c in forum Web Frameworks
    Replies: 0
    Last Post: 07-19-2007, 07:18 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •