Why we are setting class path in environment variable..? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

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

9th Dec 2017, 1:58 PM
Yaseen Mubeen
Yaseen Mubeen - avatar
1 Réponse
+ 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