Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7159085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:10:19+00:00 2026-05-28T13:10:19+00:00

Basically, I just need to write a simple java program to detect the version

  • 0

Basically, I just need to write a simple java program to detect the version of my locally installed Internet Explorer.

There’s javascript code, but it runs within your browser. what I want is some code like this:

public class VersionTest
{
   public static void main(String[] args)
   {    System.out.println("you IE Version is:" + getIEVersion());
   }

   public static String getIEVersion()
   {   //implementation that goes out and find the version of my locally installed IE
   }
}

How do I do that? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:10:20+00:00Added an answer on May 28, 2026 at 1:10 pm

    you can use Internet Explorer Registry Entry for version. You can execute Reg Query from java using Runtime class. Reg Query is a command line tool to query registry entries in windows.

    Process p = Runtime.getRuntime().exec("reg query \"HKLM\\Software\\Microsoft\\Internet Explorer\" /v Version");
    

    Complete code:

    ArrayList<String> output = new ArrayList<String>()
    Process p = Runtime.getRuntime().exec("reg query \"HKLM\\Software\\Microsoft\\Internet Explorer\" /v Version");
    BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()),8*1024);
    BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()))
    String s = null;
    System.out.println("Here is the standard output of the command:\n");
    while ((s = stdInput.readLine()) != null)
    output.add(s)
    
    String internet_explorer_value = (output.get(2));
    String version = internet_explorer_value.trim().split("   ")[2];
    System.out.println(version);
    

    Output = 9.0.8112.16421

    Output of reg query on my command prompt

    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer

    Version REG_SZ 9.0.8112.16421

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I just need the id of the record on the first form so
One simple method I've used in the past is basically just creating a second
Is there an easy (therefore quick) way to accomplish this? Basically just take some
I was hoping to implement a simple XMPP server in Java. What I need
The Situation I have a very compressed time schedule to write a simple (basically
Basically just looking to see if you can capture an image from the webcam
I'm writing an application that is basically just a preferences dialog, much like the
So I have site list on certain pages that basically just have links to
I have an MFC application. It is basically just copying files from one drive
I've used CCK to create a 'Travel Offer' content-type which basically just lists the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.