Problem about source path

Paul Huang <[email protected]>
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
Hi All

Here below is the description of my problem when debugging using JPDA
1.     I've got a java project, with its source file located at 
project/src/java/java1, project/src/java/java2, ... ..., 
project/src/java/java8
2.     The make file will compile each of the java file in these 
directories and put these generated class file in directory 
project/proto/classes/java1, ... ... , project/proto/classes/java8, and 
the jarfile in directory project/proto/jars
3.     The running script will finally run command: java -jar 
/project/proto/jars/abc.jar
4.     I modified the running script to: java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp:transport=dt_socket, server=y, 
address=8888, suspend=n -jar /project/proto/jars/abc.jar
5.     Launch the script, the initial UI will come up, waiting for 
further action
6.     Launch jswat, setting its source path to be: 
project/src/java/java1, ... ..., project/src/java/java8
7.     From jswat menu, Session--Attach to remote, entering local 
machine name, port NO. 8888, jswat report Attached to remote VM
8.     Open file in project/src/java/java4/java4.java, setting break point
9.     Select Breakpoint from the bottomleft panel, there would be a 
breakpoint setting report, select java4.java:21, and press "Show 
Source", jswat report : Source for class not found, please Check 
sourcepath. Actually, if I continue operation on the UI, the pre-set 
breakpoint will come up and system halt there.
10.    If I press continue from the breakpoint, the system will again 
report Source not found if the definition for the next functino is out 
of the area of the current file and not previously loaded.

Is this a bug or a Is there anything wrong with my operations?


Thanks

-Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.