PGPROF cannot fire up


I have PGI 20.1 and am trying to fire pgprof up but got this message:

A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Nvvp. No Java virtual machine
was found after searching the following locations:

How do I solve this problem ?

Set PGI_JAVA env. variable to the desired java path