PGPROF cannot fire up

Hi,

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:
/opt/pgi20/linux86-64-llvm/20.1/bin/…/jre/bin

How do I solve this problem ?

Set PGI_JAVA env. variable to the desired java path