

That tells the command java resides in /usr/bin/java. Java: /usr/bin/java /etc/java /usr/share/java WAY-2 (Better than WAY-1) : Below answer is still working and try it if above command is not working Read more at Where can I find the Java SDK in Linux? WAY-1 : Updated for the shortest and easy wayīelow command will give you the path, But it will only work if java command is working in other words if java path is configured. find / -name "java" Where is the Java SDK folder in my computer? Ubuntu 12.04 This should show you the version of java installed on the system (assuming that you have set the path of the java in system environment).Īnd if you haven't, add it via export JAVA_HOME=/path/to/java/jdk1.xĪnd if you unsure if you have java at all on your system just use find in terminal Javac -version // this will check your java compiler version if you installed You can open up terminal and simply type java -version // this will check your jre version Check your PATH variable and you will see the Java 10 folder appearing there first and then Java 7 folder. If you have installed Java using an installer, the installer would update the PATH variable for you. If you get version 10 information when you run java -version, it is because Windows is finding the folder containing java.exe corresponding to the version 10 first in the paths pointed to by the PATH environment variable. Windows is NOT making decisions on its own. In that way you setup your java home and tryĪlso make sure to take new command prompt after you did any changes in environment variables Where does Windows keep JDK location reference? Variable value: C:\Program Files\Java\jdk1.6.0_32 Go to Start->Control Panel->System->Advanced System Settings->Environment Variable->user variables How to locate my java jdk folder and edit the path variable - integration maven If still problem persists, try restarting your pc and see. Open the Jdk where you installed and add until /bin in the path in environment variables.Īdd until /bin in path variable in System Variables which is residing in Environment Variables. You might need to add path in environment variables which you can find in Control Panel

How to know the jdk version on my machine? If you are using Windows: c:\> for %i in (java.exe) do %~$PATH:i Lrwxr-xr-x 1 root wheel 74 Nov 7 07:59 /usr/bin/java -> /System/Library/Frameworks/amework/Versions/Current/Commands/java In my computer (Mac OS X - Snow Leopard): $ which java How do I find where JDK is installed on my windows machine?Īfter that, you can set JAVA_HOME environment variable yourself.
