Rewrote java module

Added support for openjdk 1.6 / 1.7 and oracle jdk 1.6 -> 1.8