Java version for 11.0 pgdbg?

I just tried to run pgdbg under PGI 11.0 and I got this:

The java class could not be loaded. java.lang.UnsupportedClassVersionError: (SplashLoader) bad major version at offset=6

Is there a minimum level of Java needed to run the new pgdbg?

Partially answering my own post here. I was able to get my admins to link /usr/bin/java (which was java-1.5.0-ibm-1.5.0.12.2-1jpp.1.el5) to /usr/java/latest/bin/java (which is jre-1.6.0_20-fcs). When I run pgdbg on the command line now I get:

pgdbg error detected at 10:29:26, 1/3/2011
==================================================
PGI Release 11.0-0 (2010.1201)
==================================================
A PGDBG component library was not found.
This indicates an incomplete or invalid installation of PGI software.
Reinstalling may resolve this problem.

==================================================
java.lang.Error: A PGDBG component library was not found.
This indicates an incomplete or invalid installation of PGI software.
Reinstalling may resolve this problem.

        at com.pgroup.util.PGError.log_error(PGError.java:154)
        at com.pgroup.util.PGError.report(PGError.java:96)
        at com.pgroup.util.PGError.report(PGError.java:114)
        at jpgdbg.main(jpgdbg.java:866)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at SplashLoader$1.run(SplashLoader.java:66)
        at java.lang.Thread.run(Unknown Source)
==================================================
Java Properties:
java.version: 1.6.0_20
sun.arch.data.model: 32
java.home: /usr/java/jre1.6.0_20
os.arch: i386
os.name: Linux
os.version: 2.6.18-194.26.1.el5
java.vm.version: 16.3-b01
java.vm.vendor: Sun Microsystems Inc.
java.vm.name: Java HotSpot(TM) Server VM
java.class.path: /opt/pgi/linux86-64/11.0/bin/jpgdbg.jar:/opt/pgi/linux86-64/11.0/bin/jh.jar:/opt/pgi/linux86-64/11.0/bin/PGcomp.jar:/opt/pgi/linux86-64/11.0/bin/PGlaf.jar:/opt/pgi/linux86-64/11.0/bin/PGutil.jar
java.ext.dirs: /usr/java/jre1.6.0_20/lib/ext:/usr/java/packages/lib/ext
java.library.path: /usr/java/jre1.6.0_20/lib/i386/server:/usr/java/jre1.6.0_20/lib/i386:/usr/java/jre1.6.0_20/../lib/i386:/home/mathomp4/lib:/opt/pgi/linux86-64/2011/cuda/lib:/opt/pgi/linux86-64/2011/cuda/open64/lib:/opt/pgi/linux86-64/2011/lib:/opt/pgi/linux86-64/2011/libso:/opt/cuda/lib64::/home/mathomp4/GMAO-Baselibs-3_2_1/Linux/lib:/opt/pgi/linux86-64/2011/mpi/mpich/lib:/opt/cuda/lib64:/opt/cuda/cudaprof/bin:/usr/java/packages/lib/i386:/lib:/usr/lib
sun.boot.class.path: /usr/java/jre1.6.0_20/lib/resources.jar:/usr/java/jre1.6.0_20/lib/rt.jar:/usr/java/jre1.6.0_20/lib/sunrsasign.jar:/usr/java/jre1.6.0_20/lib/jsse.jar:/usr/java/jre1.6.0_20/lib/jce.jar:/usr/java/jre1.6.0_20/lib/charsets.jar:/usr/java/jre1.6.0_20/classes
sun.boot.library.path: /usr/java/jre1.6.0_20/lib/i386
==================================================
pgdbg-specific error log
------------------------------------
Total threads:   0
Total processes: 0
Current thread:  0
Current process: 0
State:           UNKNOWN
Model:           UNKNOWN

------------------------------------
gui/pgdbg message log - oldest first
------------------------------------
send: [print "\7>8.8 start \n";files;print "\n\7>8.8 end \n"
]
send: [print "\7>16777216.15 start \n";regs -xml -info;print "\n\7>16777216.15 end \n"
]
------------------------------------
==================================================

So, it looks like java 6/1.6 is needed for new pgdbg. Is this error, then, due to the fact that PGI was installed with java pointing to 1.5 and not 1.6?

That is, is there installation-time java work done and not just run-time java usage?

Thanks for any help,
Matt

Finishing up the trilogy, my admins did some magic: grabbed Redhat’s java 6 and did some alternatives dance. And now it seems to work!

So, apparently, you need Java 6 and it needs to be the only version visible or some such.

Hi Matt,

Yes, we updated the Java version required, however we do ship all needed java bits with the compilers. Assuming you selected ‘yes’ to install java, you can then set the environment variable “PGI_JAVA” to the java version we ship, typically found at “/opt/pgi/linux86-64/2011/java/jre1.6.0_21/bin/java”.

Hope this helps,
Mat