Programmer's Guide > Using the AOM > Using Java to Access the AOM > Debugging Java Applications > The Shared Memory Method
  
The Shared Memory Method
To use the shared memory method, you must set JVM arguments properly and create a name for the shared memory address.
As an example, if you want to name the shared memory address <myaddr>, use the following steps to debug EventFlow.class in C:\temp:
1. From the Arbortext Editor command line, enter the following commands:
set javaclasspath=C:\temp
set javavmargs="-Xdebug -Xrunjdwp:transport=dt_shmem,
address=<myaddr>,server=y,suspend=n"
# the above is one long line
java_console()
2. Open an MSDOS shell and enter the following command:
jdb -attach <myaddr>
3. After JDB is initialized, give it a break point. For example, to break at the method flow of the class EventFlow, enter the following:
> stop in EventFlow.flow
4. From the Arbortext Editor command line, run EventFlow.flow as follows:
java_static('EventFlow','flow')
JDB will stop at the break point and display the line of the source code where it stopped.