Difference Between Path and Classpath (JNNC Technologies)


What is Path in Java?

Once you installed Java on your machine, it is required to Set the PATH environment variable to conveniently run the executable (javac.exe, java.exe, javadoc.exe, and so on) from any directory without having to type the full path of the command, such as:
C:\javac TestClass.java
Otherwise, you need to specify the full path every time you run it, such as:
C:\Java\jdk1.7.0\bin\javac TestClass.java

0 Comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();