Why we are setting class path in environment variable..? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we are setting class path in environment variable..?

9th Dec 2017, 1:58 PM
Yaseen Mubeen
Yaseen Mubeen - avatar
1 Answer
+ 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
12th Dec 2017, 3:21 PM
Dev
Dev - avatar