0
Why we are setting class path in environment variable..?
2 Answers
+ 5
Short answer: Because without setting the PATH Environment Variable, every time you compile or run the java program through the Command-Line you'd need to provide the complete path of javac:
C:\Java\jdk1.8.0_151\bin\javac Hello.java