Does java respect PATH env variable when resolves .jar filename?

view full story

http://serverfault.com – This is what I have in PATH: PATH=/opt/ClosureCompiler:/home/vmadmin/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games There is a compiler.jar in /opt/ClosureCompiler, but when I call java -jar compiler.jar I get Unable to access jarfile compiler.jar Though java -jar /opt/ClosureCompiler/compiler.jar works just fine. So, can java follow the PATH for filenames resolving? If so - what have I done wrong? (HowTos)