Added Java architecture detection to JDK library.