Search code examples
javajava-web-startjnlp

How to match javawebstart.version property with Java version?


Our application is concerned by an Oracle bug on Java Web Start that occurred since Java 6u17 until Java 7u10 (bug ID 6957028). This is why I want to warn my users if they use a version that will cause them troubles.

So I use the following code to get Java Web Start version:

String jws_version = System.getProperty("javawebstart.version");

The problem is, that the resulting string makes sense for Java 6, for instance for Java 6u07 is returns javaws-1.6.0_07, but somehow with Java 7 it stops making sense. For instance with the new Java 7u10, I get the following version: javaws-10.10.2.18.

How can I match this string with the standard Java version? It can't find any documentation on it.

Thanks!


Solution

  • So I think I got it, but it's purely empirical!

    For Java 1.7.0_25-b17, the associated Java Web Start version is 10.25.2.17

    So the Java Web Start version is build like this, for Java 7:

    • 10
    • version number
    • 2
    • build number