Java version fix and activation scetch