diff --git a/core/src/main/java/io/undertow/server/DirectByteBufferDeallocator.java b/core/src/main/java/io/undertow/server/DirectByteBufferDeallocator.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/io/undertow/server/DirectByteBufferDeallocator.java
+++ b/core/src/main/java/io/undertow/server/DirectByteBufferDeallocator.java
@@ -20,7 +20,11 @@ public final class DirectByteBufferDeallocator {
 
 
     static {
-        int version = Integer.getInteger("java.specification.version");
+        String versionString = System.getProperty("java.specification.version");
+        if(versionString.startsWith("1.")) {
+            versionString = versionString.substring(2);
+        }
+        int version = Integer.parseInt(versionString);
 
         Method tmpCleaner = null;
         Method tmpCleanerClean = null;
Fix issue with byte buffer dealocator