I am trying to get the javac version in a bash script (intended for apks manipulation and builds).
I found a way to get the java version which may be similar but not the same (it does not work for javac).
P.S.: Currently working on OS X but should also work on Linux.
EDIT: PS: Some environments may not have javac in the PATH
Thanks!