How to Search java Program Location using Command Prompt in Microsoft Windows
This is an article where the focus will be on how to search java program. It is important to be able to locate the existence of a java program. It is useful in order to set the environment variable. So, it is important to use the location to define the value of the JAVA_HOME environment variable. By defining the JAVA_HOME environment variable, it will help to execute the ‘java’ program in every path possible.
Preparation
As for the preparation, it is obvious that the first step will be having a Java program installed in the device. For getting a reference on how to install the Java program, just take a look in a specific article. It is an article with the title of ‘How to Install JDK Java Development Kit in Microsoft Windows 10’ which exist in this link.
Searching Java program
As for the searching step which is the Java program, just do the following steps :
-
Run the Command Prompt which is the Command Line Interface in the device running using Microsoft Windows as its operating system. For a reference to run Java Program using Command Prompt in Microsoft Windows there is a link
-
Following after, just make sure that the ‘java’ program can be executed. Just look at an article with the title of ‘How to Run Java Program using Command Prompt in Microsoft Windows’ in this link.
-
As for searching it, just type ‘where java’ in the Command Prompt. The Command Prompt will give a response back. That response is available as an output display of the executed command of ‘where java’. Command Prompt will print the location of the ‘java’ program file as an output. Whereas in this case it is in ‘C:\Program Files\Common Fils\Oracle\Java\javapath\java.exe’.
For another reference, just take a look at the following video. It is showing how to search the location of the ‘java’ file program by executing ‘where java’ :