Added check on type (jdk or jre) related to the javac and javaws presence