As the standard installation path of JENV is not to be used for this example, the environment variable JAVA_HOME must be set before calling the program.
The call and processing are then as follows:
export JAVA_HOME=/myjava/jre
Hello
>> Please enter name
Susanne
>> Hello Susanne!