On the other hand, I was once tasked to rewrite a couple of Korn shell scripts, initially written for Aix, ported to Red-Hat, into Java.

The reason being the lack of UNIX skills on the new team, and apparently it was easier to pay for the development effort.

Afterwards there were some questions about the performance decrease.

I had to patiently explain the difference between having a set of scripts orchestrating a workflow of native code applications written in C, and having the JVM do the same work, never long enough for the JIT C2 to kick in.