


This will print the current value of path environment variable. If java is installed, then you need to check if PATH environment variable points to the java executables directory.

JRE only helps to run already built applications, JDK(which Javac is bundled into) is also needed if you are developing software in java. Note that having JRE is not enough to develop java applications. If you are not sure whether your computer has it installed or not, you can verify from appwiz.cpl.(More details here – How do I check if Java is installed on my system)
