At compile time, java file is compiled by Java Compiler (It does not interact with OS) and converts the java code into bytecode.
The path is required to be set for using tools such as javac, java etc.
If you are saving the java source file inside the jdk/bin directory, path is not required to be set because all the tools will be available in the current directory.
But If you are having your java file outside the jdk/bin folder, it is necessary to set path of JDK.
There are 2 ways to set java path:
To set the temporary path of JDK, you need to follow following steps:
Enter your email address here always to be updated. We promise not to spam!
© Copyright © 2010 - 2017 MindStick Software Pvt. Ltd. All Rights Reserved