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.
RUN.BAT
-------------
set SOURCE=C:\Benchmark\Java\JBOSS\Inventory
set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar
if "%JBOSS_CLASSPATH%" == ""
(
set JBOSS_CLASSPATH=%SOURCE%;%JAVAC_JAR%;%RUNJAR%;
)
else
(
set JBOSS_CLASSPATH=%SOURCE%;%JBOSS_CLASSPATH%;%JAVAC_JAR%;%RUNJAR%;
)
set JAVA_OPTS=%JAVA_OPTS% -agentpath:"c:\program files\sparx systems\ea\ssjavaprofiler5_70"