Skip to content
Prev 381656 / 398502 Next

Identifying presence of Java

I am mystified by your description.

A) If java is not installed, the operating system or system shell will be the source of any error associated with attempting to invoke it. That means the error message could be anything, but I find it quite surprising that the message emitted by the OS would mention "runtime". In any event, look for the output you can rely on from java for positive identification rather than looking for any consistent pattern in the error messages for negative confirmation.

B) Many OS command shells are case-sensitive... asking for the "Java" program is in that case different than asking for the "java" program.
On November 9, 2019 8:51:43 AM PST, Dennis Fisher <fisher at plessthan.com> wrote: