Why doesn't export PATH=path_to_lib doesn't work and -classpath works?
lib has all the jar files.
I exported the path to the lib folder.
I also did export CLASSPATH=$CLASSPATH:$PATH
Then did a javac,
It is giving compilation problems.
Whereas, when we did javac --classpath /opt/lib/something.jar clazz works fine. Why is that?