Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » cannot set breakpoint in the source jar file when debugging another jar file
cannot set breakpoint in the source jar file when debugging another jar file [message #257465] Wed, 19 November 2008 10:39 Go to next message
Eclipse UserFriend
I use eclipse 3.4.1 on FC6 linux.
My java source layouts are as follows:
/home/twong/java/myjar/com/mycomp/cpt/*.java
/home/twong/java/myjar/com/mycomp/cptx/*.java

The sources create
/home/twong/java/myjar/myjar.jar
/home/twong/java/myjar/myjarx.jar

These two jars are copied to /home/twong/jdk1.6.0_06/jre/lib/ext and
appear in the JRE System Library [jre] inside Eclipse.
They are also used to build myProc.jar.

I use "Java Source Attachment" to specify the "Location path"
/home/twong/java/myjar/com/mycomp/cpt/ for the file myjar.jar and
/home/twong/java/myjar/com/mycomp/cptx for the file myjarx.jar.

When I run myProc.jar in debug mode, I cannot set a breakpoint in
/home/twong/java/myjar/com/mycomp/cpt/key.java by clicking the "Toggle
Breakpoint".

Why not?
Please help to set a breakpoint.
Thanks.
Re: cannot set breakpoint in the source jar file when debugging another jar file [message #257469 is a reply to message #257465] Wed, 19 November 2008 11:02 Go to previous message
Eclipse UserFriend
A related problem is:
when I single step, "Source not found", "The source attachment does not
contain the source for the file MyPublicKeyRsa.class" message appear.
You can change the source attachment by clicking Change Attached Source
below:

As mentioned in my original post, I had used "Java Source Attachment" to
specify the "Location path" /home/twong/java/myjar/com/mycomp/cpt/ for the
file myjar.jar and /home/twong/java/myjar/com/mycomp/cptx for the file
myjarx.jar.
Please help.
Thanks.
Previous Topic:How to set up my eclipse project to build a jar file from two jar files
Next Topic:How can I get notified when java build path is changed
Goto Forum:
  


Current Time: Tue Apr 29 16:47:14 EDT 2025

Powered by FUDForum. Page generated in 0.07258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top