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

  • SEARCH
  • Home
  • 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 9114425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:11:52+00:00 2026-06-17T04:11:52+00:00

Goal : check java’s version on a machine (I can get this from java

  • 0

Goal: check java’s version on a machine (I can get this from java -version). Compare it with latest available from java website

I would like to know if there is any way I can check for latest Java releases assuming that I have JRE/JDK installed on a machine.

If I can do this through Java itself, my solution would become platform independent. I could use java.net.URL class to send a request to Java website and get the HTML, however the response would be dynamic as Oracle can change their website and styles and possibly will have maintenance issues in long run.

I have looked at javatester.org, but I would not want it through an applet but through command line (which I can add to a script).

Through javacpl.exe, I can schedule periodic checks, but I would like to do it on demand.

  • 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-06-17T04:11:53+00:00Added an answer on June 17, 2026 at 4:11 am

    The answer is actually quite simple. http://java.com/en/download/testjava.jsp issues a request to http://java.com/applet/JreCurrentVersion2.txt. That file currently contains a single version number: ‘1.7.0_11’…which is the latest and greatest, indeed.

    Java code example

    try (BufferedReader br = new BufferedReader(new InputStreamReader(new URL(
        "http://java.com/applet/JreCurrentVersion2.txt").openStream()))) {
      String fullVersion = br.readLine();
      String version = fullVersion.split("_")[0];
      String revision = fullVersion.split("_")[1];
      System.out.println("Version " + version + " revision " + revision);
    } catch (IOException e) {
      // handle properly
    }
    

    Update 2014-03-20

    Eventhough Java 8 was recently released http://java.com/applet/JreCurrentVersion2.txt currently still returns 1.7.0_51.

    Update 2016-07-13

    Looks like we need to come back to this every few months… Currently you need to scan http://java.com/en/download/installed8.jsp for a JavaScript variable latest8Version. So, you could run curl -s https://java.com/en/download/installed8.jsp | grep latest8Version.

    Update 2018-08-19

    http://javadl-esd-secure.oracle.com/update/baseline.version is another hot spot as mentioned in some other answer.

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

Sidebar

Related Questions

Goal : Add the latest JSON into my project. I download JSON from this
My ultimate goal is to do this programmatically, but as a sanity check I'm
check out this fiddle: http://jsfiddle.net/5rmEe/ the goal is to uncheck the radio button when
hello my goal is to check from in side a web part code if
I am not sure how to do this. The goal: I want to check
My goal is to check if a string contains any string values from a
Can an int be null in Java? For example: int data = check(Node root);
Goal : I wants when I drag image it become fade so we can
Goal: Produce an Excel document with information from 3 associated models that is similar
Goal I am building an Eclipse plugin targeting the 3.7 environment and would like

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.