91-9990449935 0120-4256464 |
How to set path in JavaThe 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:
1) How to set Temporary Path of JDK in WindowsTo set the temporary path of JDK, you need to follow following steps:
For Example:set path=C:\Program Files\Java\jdk1.6.0_23\bin Let's see it in the figure given below: 2) How to set Permanent Path of JDK in WindowsFor setting the permanent path of JDK, you need to follow these steps:
For Example:
Now your permanent path is set.You can now execute any program of java from any drive. Setting Java Path in Linux OS
export PATH=$PATH:/home/jdk1.6.01/bin/
Next TopicDifference Between JDK JRE And JVM
|