diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/Util.java b/src/main/java/com/microsoft/sqlserver/jdbc/Util.java index fde8e94fe..9fce9029a 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/Util.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/Util.java @@ -48,7 +48,13 @@ private Util() { private static final Lock LOCK = new ReentrantLock(); static boolean isIBM() { - return SYSTEM_JRE.startsWith("IBM"); + Class clazz = null; + try { + clazz = Class.forName("com.ibm.lang.management.MemoryUsage"); + } catch (ClassNotFoundException e) { + //We're using the try-catch to test for IBM jdk, no need to handle exception. + } + return null != clazz; } static String getJVMArchOnWindows() {