Results 1 to 2 of 2
  1. #1
    waleed_cs2000 is offline Member
    Join Date
    Apr 2008
    Posts
    1
    Rep Power
    0

    Question getting the default browser+MIME data

    hi all
    I want to ask : how to get the current system default browser by java code at runtime (IE,firefox,...)? and how to get its specific version ? also how to get the supported MIME type of that browser also by java code?

    this is intended to be part of a network agent by java.
    thanks

  2. #2
    DonCash's Avatar
    DonCash is offline Moderator
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    240
    Rep Power
    10

    Default

    Hey Waleed,

    Welcome to the Java Forums.

    In older versions of Java you used to be able to use:

    Java Code:
    Systems.getProperty("browser");
    Systems.getProperty("browser.version");
    Systems.getProperty("browser.vendor");
    But in the new versions of Java, this has been removed for security reasons.

    Because of this I am no longer sure how to get the browser information you require. I will have a look around and see what I can find...
    Did this post help you? Please me! :cool:

Similar Threads

  1. problem when generating MIME header of a SOAP packet using SAAJ
    By kumar.jyotish@gmail.com in forum Advanced Java
    Replies: 1
    Last Post: 10-18-2010, 05:03 PM
  2. Mime type of a file from web
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-03-2008, 06:20 PM
  3. Mime type of a file
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-03-2008, 06:18 PM
  4. Connecting to a Website with the default browser
    By Riftwalker in forum Java Applets
    Replies: 4
    Last Post: 12-04-2007, 05:57 PM
  5. Default Button
    By hiranya in forum AWT / Swing
    Replies: 2
    Last Post: 11-01-2007, 07:08 PM

Posting Permissions

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