Closed volodymyrkutsenko closed 7 years ago
There is no need to check the java version in java code since compiled java classes files have a java version record which they were compiled with. If the record indicates a version which is greater than the current installed then the class simply won't be loaded by the classloader with an exception at runtime.
Therefore only the check within the startup script is really required and since it's already done -- closing this issue.
Currently BetterBrain requires java 8 to be compiled and executed. It is required to add such a check to the batch file and within the java code.
The version of java can be retrieved in code like this
String version = System.getProperty("java.version");