| | |
| | | } |
| | | |
| | | /** |
| | | * Checks that the java version. |
| | | * Checks the java version. |
| | | * |
| | | * @throws ClientException |
| | | * If the java version we are running on is not compatible. |
| | | */ |
| | | public static void checkJavaVersion() throws ClientException { |
| | | final String version = System.getProperty("java.specification.version"); |
| | | if (!(Float.valueOf(version) >= 1.6)) { |
| | | if (Float.valueOf(version) < 1.6) { |
| | | final String javaBin = System.getProperty("java.home") + File.separator + "bin" + File.separator + "java"; |
| | | throw new ClientException(ReturnCode.JAVA_VERSION_INCOMPATIBLE, ERR_INCOMPATIBLE_JAVA_VERSION.get("1.6", |
| | | version, javaBin), null); |