Java version problem for HepRep in OS Catalina

Dear all,

I’m working with Geant4 10.07 on mac OS Catalina and I have installed “jdk” by mac port. Below the output from “java -version”:

openjdk version “15.0.1” 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.1+9)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.23.0, JRE 15 Mac OS X amd64-64-Bit Compressed References 20201130_124 (JIT enabled, AOT enabled)
OpenJ9 - 0394ef754
OMR - 582366ae5
JCL - ad583de3b5 based on jdk-15.0.1+9)

During the Geant4 installation I have set all the visualisation options as you can see here:

You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRep (HepRepXML)
G4HepRepFile (HepRepFile)
RayTracer (RayTracer)
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
OpenGLImmediateX (OGLIX, OGLI)
OpenGLStoredX (OGLSX, OGL, OGLS)

but when I run “java -jar HepRep.jar” I see:

Error: HepRApp was started with Java version 1.0 but requires version 1.4 or newer.

I’m sure that I have installed java 8.

Where is my mistake?

Thanks in advance.

Best Regards,

Sergio Lo Meo