You can use the Sun Studio dbx to debug mixed code (Java code and C code or C++ code) running under the SolarisTM OS and the Linux OS.
You can debug several types of Java applications with dbx (see Starting to Debug a Java Application). Most dbx commands operate similarly on native code and Java code.
dbx has the following limitations when debugging Java code:
dbx cannot tell you the state of a Java application from a core file as it can with native code.
dbx cannot tell you the state of a Java application if the application is hung for some reason and dbx is not able to make procedure calls.
Fix and continue, and runtime checking, do not apply to Java applications.