Added support for openjdk6