check jre version windows 10 code example Example: java check jre version java -version #for jre version javac -version # for java compiler version