I think the parent misattributed where the fsckup was. Most probably it wasn't
bash or other shell as it is, it probably was broken /usr/bin/java script
(yes, it used to be a shell script) that looked for Java bytecode interpreter
in various places. As most scripts that come from a big company, its style was
terrible.