In older days, we needed to do following things to run a java program:
a. set JAVA_HOME=<Installation directory of jdk>
b. set PATH=%JAVA_HOME%\bin;%PATH%;.
c. set CLASSPATH=%JAVA_HOME%\lib;%CLASSPATH%;.
My queries are:
- Is the step c still needed?
- If the step c is/was done to include the jar files in the JDK lib folder, then how does it actually work? (because normally we need to include the jar file explicitly, for example set CLASSPATH=C:\files\afile.jar;%CLASSPATH%;. Simply giving the folder path of jar files does not suffice, how does it suffice here?)