yes, this is as far as i know the naming convention of java Versions, so just use the System.getProperty("java.version")
as you are already doing, and check the String by using stringTokenizer if the minimum required jre is installed.
Edit: i wrote Stringbuilder in the beginning, of cource i meant stringtokenizer.
With the Stringtokenizer you can get Substrings of a String separated by a defined Symbol, and kind of iterate through the String. You may need a second stringtokenizer, the first separating the Strting by "." and than for the last Substring one separating by "_". Take a lool here.
You could do it like this:
(of cource you could also do it over a loop, an checking with hasMoreTokens() and so on, but you dont need in this case, because you know exactly what the string looks like)
String[] versionArray = new String[4];
String version = System.getProperty("java.version");
StringTokenizer st1 = new StringTokenizer(version,".");
versionArray[1] = st1.nextToken();
versionArray[2] = st1.nextToken();
StringTokenizer st2 = new StringTokenizer(st1.nextToken(),"_");
versionArray[3] = st2.nextToken();
versionArray[4] = st2.nextToken();
After it in the versionArray would be with your example ["1"]["6"]["0"]["18"] and you can do your comparison on this...