changed state to present for java
read JAVA_HOME
Merge branch 'java' into common