Java version check problem in pgdbg

Hi all,

under ubuntu 16.04, I have problem with pgdbg in GUI mode.
Running pgdbg -v gives:

Export PGI=/opt/pgi

/usr/bin/xrefresh -geometry 1x1+0+0 2> /dev/null


pgdbg-Warning-Unable to verify Java version using /usr/bin/java.

The minimum required version is 1.6.0_21. If you are

using an older version of Java you may encounter errors

or unexpected behavior.

segmentation fault (core dumped)

But when I check my java with /usr/bin/java -version I get:

openjdk version “1.8.0_162”

OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-0ubuntu0.16.04.2-b12)

OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)

I tried to set enviroment variable directly by
$ export PGI_JAVA=/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java
and also:
$ export PGI_JAVA=/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/bin/java
but I still get the same error.

I would appreciate it very much if you could give me some advice on how to solve the problem. If you need any further information please let me know.


Hi Tom,

I sent this to our debugger team to investigate, but unfortunately they weren’t able to reproduce the error so are unclear what the problem is. They said that it looks like you’re doing everything correctly.

One thing that you can try is setting the Java version on the command line.

pgdbg -java <path-to-jre>