On OSX, in the terminal, using the command:
Gives me the following output:
You can see that a reference to JAVA is no where in there. Yet in terminal, when I type:
It is seen as a valid command and outputs:
Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "server" VM The default VM is server, because you are running on a server-class machine.
My question is this, how is it recognizing my java command if it is not referenced in my PATH variable and it is not referenced in the directory my terminal instance is currently exploring?
Thank you for the help.