Returns true if ImageJ is running a 64-bit version of Java.
()
| 1305 | |
| 1306 | /** Returns true if ImageJ is running a 64-bit version of Java. */ |
| 1307 | public static boolean is64Bit() { |
| 1308 | if (osarch==null) |
| 1309 | osarch = System.getProperty("os.arch"); |
| 1310 | return osarch!=null && osarch.indexOf("64")!=-1; |
| 1311 | } |
| 1312 | |
| 1313 | /** Displays an error message and returns true if the |
| 1314 | ImageJ version is less than the one specified. */ |
no test coverage detected