PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Java issues with pgdbg on Mac
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
JamesBenedict40177



Joined: 23 Apr 2013
Posts: 4

PostPosted: Wed Sep 04, 2013 12:19 pm    Post subject: Java issues with pgdbg on Mac Reply with quote

Hello,
Probably a simple solution, but my experience level with pgdbg is low. I'm trying to run the GUI version of pgdbg 13.4 on my local machine (Mac OS 10.8), but I get the following errors:

/Users/xxx/xxx> pgdbg
Exception in thread "main" java.lang.NoClassDefFoundError: SplashLoader
Caused by: java.lang.ClassNotFoundException: SplashLoader
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I've tried a variety of java paths when setting PGI_JAVA in my .cshrc file, but none seem to work. I'm assuming the java stuff needed for pgdbg was included when I installed the compiler...? If so, which path should I set PGI_JAVA to? I found directory "jre1.7.0_09.jre" in /opt/pgi/osx86-64/2013/java, but I could not get the GUI pgdbg to work trying various sub-directory paths, e.g.:
setenv PGI_JAVA /opt/pgi/osx86-64/2013/java/jre1.7.0_09.jre
or
setenv PGI_JAVA /opt/pgi/osx86-64/2013/java/jre1.7.0_09.jre/Contents/Home/bin
(and various other attempts)

Probably doing something stupid! Note: I *am* able to run pgdbg in "text" mode.

Thanks in advance for any help,
Jim B.
Back to top
View user's profile
donb



Joined: 20 Jul 2004
Posts: 88
Location: The Portland Group, Inc.

PostPosted: Wed Sep 04, 2013 1:24 pm    Post subject: Reply with quote

You usually shouldn't have to set PGI_JAVA at all, but it doesn't look like that is the problem you are running into. Java is starting up, because you are getting a Java exception. It's not finding the first Java class that is run when the debugger starts up.

Are you setting any other Java-related environment variables (CLASSPATH, JAVA_HOME, JAVA_TOOL_OPTIONS, ...)?

Is your PGI installation complete - does /opt/pgi/osx86-64/13.4/bin/jpgdbg.jar exist?

--Don
Back to top
View user's profile
JamesBenedict40177



Joined: 23 Apr 2013
Posts: 4

PostPosted: Wed Sep 04, 2013 3:02 pm    Post subject: Reply with quote

Don - to answer your questions...
(1) I do not believe I am setting any other Java-related environment variables (at least not in my .cshrc)

(2) Yes, /opt/pgi/osx86-64/13.4/bin/jpgdbg.jar does exist.

Incidentally, I get the same error whether I include "setenv PGI_JAVA ..." or I don't.

I don't know if this matters at all, but here is the version info for my regular java app:
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-456-11M4508)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-456, mixed mode)

Thanks,
Jim
Back to top
View user's profile
donb



Joined: 20 Jul 2004
Posts: 88
Location: The Portland Group, Inc.

PostPosted: Wed Sep 04, 2013 5:05 pm    Post subject: Reply with quote

James,

A couple more things:

We made big improvements to the debugger on OSX in 13.6. Those improvements don't affect the error that you are seeing, but I'd recommend upgrading to at least that release if you plan to do much debugging on OSX. Further improvements related to debugging OSX shared libs are coming in 13.9.

Regarding your current problem, however: would you please invoke pgdbg like you usually do, but also use the "-v" option (lowercase 'v') and post the output?
thanks
--Don
Back to top
View user's profile
JamesBenedict40177



Joined: 23 Apr 2013
Posts: 4

PostPosted: Mon Sep 09, 2013 9:47 am    Post subject: Reply with quote

Don,

Thanks for the info on the newer debugger releases.

* For 13.4, when I do not have setenv PGI_JAVA set in .cshrc:
/Users/xxx> pgdbg -v
pgdbg-Error-Required tool bin was not found

* When I have setenv PGI_JAVA /usr/bin/java (my regular java version):
/Users/xxx> pgdbg -v
Action(java_version_check(/usr/bin/java,1,6,0,21,64))
Action(sighand_setup())

/usr/bin/java -cp /opt/pgi/osx86-64/13.4/binjpgdbg.jar/opt/pgi/osx86-64/13.4/binPGcomp.jar/opt/pgi/osx86-64/13.4/binPGlaf.jar/opt/pgi/osx86-64/13.4/binPGutil.jar/opt/pgi/osx86-64/13.4/binjide-common.jar/opt/pgi/osx86-64/13.4/binjide-dock.jar/opt/pgi/osx86-64/13.4/binrsyntaxtextarea.jar/opt/pgi/osx86-64/13.4/binganymed-ssh2-build251.jar SplashLoader PGDBGsplash.jpg jpgdbg localhost -v mpiexec +mpiexec_args -mpiexec_args +pgserv_args -pgserv_args -program_args
Exception in thread "main" java.lang.NoClassDefFoundError: SplashLoader
Caused by: java.lang.ClassNotFoundException: SplashLoader
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
pgdbg-Fatal-jpgdbg completed with exit code 1

* When I have setenv PGI_JAVA /opt/pgi/osx86-64/13.4/bin:
/Users/xxx> pgdbg -v
pgdbg-Error-Required tool bin was not found
pgdbg... looked for bin at /opt/pgi/osx86-64/13.4/bin

-- Jim
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group