Hello ,
earlier had asked a question regarding load factor in Hahmap
In order to do some work on my own
( and not just ask without trying !
) I tried setting up an eclipse project and in a method defined a HashMap.
When I hit F3 on my keyboard - eclipse specified that "Source not found"
"File rt.jar has no source " and a button with ::
"Attach source "
In my jdk I see a archive file "F:\jdk1.5.0_15\src.zip"
which is what I attached
Now I can see the source of the HashMap in eclipse
My problem being ::
I tried putting a breakpoint in the code of HashMap
and then run eclipse in debug mode
I get the following error :
Looked up google and see that one option specified is ::
This property " Add line number attributes to generated class files "
needs to be set
This property is enabled .
Checked via :: Window >> preferences >>Compiler
and also ::
Project >> Properties >> set to true here ( cant change in this view )
So can someone please tell me how to run
Java collection code in debug mode in eclipse ?
This may not be the right forum but wastnt sure where to post it .
Thanks ,
~satish