swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug java? (was Re: SimpleObserverSwarm in Java again... :-{


From: Marcus G. Daniels
Subject: Re: How to debug java? (was Re: SimpleObserverSwarm in Java again... :-{
Date: 26 May 2001 11:48:50 -0600
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7

>>>>> "PJ" == pauljohn  <address@hidden> writes:
PJ> $ export 
CLASSPATH=/usr/share/swarm/swarm.jar:/usr/share/swarm/kawa.jar:$CLASSPATH
PJ> $ export LD_LIBRARY_PATH=/usr/lib/swarm:$LD_LIBRARY_PATH
PJ> address@hidden problem]$ jdb Sysel

PJ> After that, I am in jdb!

Another way that is as easy on Linux-based systems and much easier
than than on complex installations (when there are numerous pathnames
to the different Swarm dependencies, e.g. BLT, libpng, zlib, HDF5 are
often found in different places on Solaris), is to run:

eval `javaswarm`

As you show, the only purpose of the javaswarm script is to set the
LD_LIBRARY_PATH and CLASSPATH environment variables.  If you don't
provide a class name to run, the javaswarm script prints what it wants
to set on standard output.  Thus, when you want to run something like
jdb, or do system call tracing on the JVM, etc., this is a way to
avoid the JAVASWARMGDB=gdb javaswarm indirection.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]