Consider the JBoss example below. The source code for a simple servlet is located in the directory location:
The binaries executed by JBOSS are located in the JAW.EAR file in this location:
The Enterprise Architect debugger has to be able to locate source files during debugging. To do this it also uses the CLASSPATH, searching in any listed path for a matching JAVA source file, so the CLASSPATH must include a path to the root of the package for Enterprise Architect to find the source during debugging.
The following is an excerpt from the command file that executes the JBOSS server. Since the Class to be debugged is at com/inventory/dto/carDTO, the root of this path is included in the JBOSS classpath.
if "%JBOSS_CLASSPATH%" == ""
set JAVA_OPTS=%JAVA_OPTS% -agentpath:"c:\program files\sparx systems\ssjavaprofiler75"