problem to debug applet, please help...
i use windows.
there are 3 files under "c:\current" directory, they are
file 1. mem_appletviewer.bat - with content:
"e:\install\java\jdk1.3.1_05\bin\appletviewer" -J-Xdebug -J-Xrunjdwp:transport=dt_shmem,address=conn001122,server=y,suspend=y test.htm
file 2. mem_jdb.bat - with content:
"e:\install\java\jdk1.3.1_05\bin\jdb" -attach conn001122
file 3. test.htm - with applet tag:
<applet
code="Let0.class"
codebase="G:\Victor\Vc5060\Develop\JCity\files\RecentFile"
width=400 height=250 ></applet>
(Let0.class is a simplest class extends Applet)
please note, codebase is not "c:\current" directory
problems happend when i debug: (run mem_appletviewer.bat first then mem_jdb.bat)
a) if move Let0.class to "c:\current" directory, debug is fine but test.htm can not load Let0.class itself because of codebase tag.
b) if move Let0.class to codebase directory (G:\Victor\Vc5060\Develop\JCity\files\RecentFile), test.htm can load the class but appletviewer can not load the class (can not find Let0.class).
===========================================================
in my application, i need to put Let0.class in codebase directory.
Question:
1) how to set -classpath for appletviewer (as debug application class in java.exe )? is it possible?
2) codebase TAG in test.htm doesn't work for appletviewer, what is problem? how to fix it?
totally:
how to debug Let0.class if it is in codebase directory (not in "c:\current")?
thx

