Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » attach jdk source didn't work,
attach jdk source didn't work, [message #85998] Sun, 17 August 2003 10:22 Go to next message
Eclipse UserFriend
Originally posted by: junk.xsoftware.biz

I tried a few things and I still can't step into the 1.4.2 source. Here
is what I did so far

Window->Preferences, Java->Installed JRE's, clicked on my JRE and clicked
Edit. Added the src.zip to the rt.jar. After this, I verified it worked...


Project -> Properties, then selected Java Build Path, then the Libraries
tab. I then expanded JRE System Library, and then expanded rt.jar and it
showed the source I had attached.

I then tried to verify another way which failed!!!!
From package explorer, I expanded JRE System Library and found the
FileInputStream class and double clicked it. Eclipse told me the source
wasn't found, and luckily had an attach feature. I used that to attach
the source, and all seemed to be attached fine.

I then tried debugging and stepping into FileInputStream constructor and
that did not work.

I read some stuff on the forum about step filtering and decided to reverse
that by doing this....
Window->Preferences, Expand Java->Expand Debug->Select Step Filtering.
Clicked on the Enable All button.

Tried debugging, still can't step into FileInputStream constructor. I
then tried disabling all, tried again and still can't step into the source.

What am I missing? I have been looking around the forums awhile and
didn't see anything else I could be doing wrong. Only saw the stepping
into String and Step filtering posts.
thanks for any help,
dean
Re: attach jdk source didn't work, [message #86029 is a reply to message #85998] Sun, 17 August 2003 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: junk.xsoftware.biz

Here is a little more info. I tried to a library without attaching the
source, and when I step into it, it says that it cannot find the source,
and gives a button where I can attach the source to it and that works!!!!,
but the jdk does not prompt me for it's source for some reason. Something
must be wrong in the step filtering because eclipse must be not even
trying to step into it when I hit the step into button. Any ideas on
this??


Dean Hiller wrote:

> I tried a few things and I still can't step into the 1.4.2 source. Here
> is what I did so far

> Window->Preferences, Java->Installed JRE's, clicked on my JRE and clicked
> Edit. Added the src.zip to the rt.jar. After this, I verified it worked...


> Project -> Properties, then selected Java Build Path, then the Libraries
> tab. I then expanded JRE System Library, and then expanded rt.jar and it
> showed the source I had attached.

> I then tried to verify another way which failed!!!!
> From package explorer, I expanded JRE System Library and found the
> FileInputStream class and double clicked it. Eclipse told me the source
> wasn't found, and luckily had an attach feature. I used that to attach
> the source, and all seemed to be attached fine.

> I then tried debugging and stepping into FileInputStream constructor and
> that did not work.

> I read some stuff on the forum about step filtering and decided to reverse
> that by doing this....
> Window->Preferences, Expand Java->Expand Debug->Select Step Filtering.
> Clicked on the Enable All button.

> Tried debugging, still can't step into FileInputStream constructor. I
> then tried disabling all, tried again and still can't step into the source.

> What am I missing? I have been looking around the forums awhile and
> didn't see anything else I could be doing wrong. Only saw the stepping
> into String and Step filtering posts.
> thanks for any help,
> dean
Re: attach jdk source didn't work, [message #86044 is a reply to message #86029] Sun, 17 August 2003 13:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: junk.xsoftware.biz

I just thought of something else. possibly jdk1.4.2(sun's) was not
compiled with debugging options on. I somehow got to Thread.exit() and it
says
line: not available [local variables unavailable] when the program was
exiting. It still does not step into LogManager.getLogManager though and
say the source is not available. Anybody successful with using 1.4.2?
thanks,
dean



Dean Hiller wrote:

> Here is a little more info. I tried to a library without attaching the
> source, and when I step into it, it says that it cannot find the source,
> and gives a button where I can attach the source to it and that works!!!!,
> but the jdk does not prompt me for it's source for some reason. Something
> must be wrong in the step filtering because eclipse must be not even
> trying to step into it when I hit the step into button. Any ideas on
> this??


> Dean Hiller wrote:

> > I tried a few things and I still can't step into the 1.4.2 source. Here
> > is what I did so far

> > Window->Preferences, Java->Installed JRE's, clicked on my JRE and clicked
> > Edit. Added the src.zip to the rt.jar. After this, I verified it
worked...


> > Project -> Properties, then selected Java Build Path, then the Libraries
> > tab. I then expanded JRE System Library, and then expanded rt.jar and it
> > showed the source I had attached.

> > I then tried to verify another way which failed!!!!
> > From package explorer, I expanded JRE System Library and found the
> > FileInputStream class and double clicked it. Eclipse told me the source
> > wasn't found, and luckily had an attach feature. I used that to attach
> > the source, and all seemed to be attached fine.

> > I then tried debugging and stepping into FileInputStream constructor and
> > that did not work.

> > I read some stuff on the forum about step filtering and decided to reverse
> > that by doing this....
> > Window->Preferences, Expand Java->Expand Debug->Select Step Filtering.
> > Clicked on the Enable All button.

> > Tried debugging, still can't step into FileInputStream constructor. I
> > then tried disabling all, tried again and still can't step into the source.

> > What am I missing? I have been looking around the forums awhile and
> > didn't see anything else I could be doing wrong. Only saw the stepping
> > into String and Step filtering posts.
> > thanks for any help,
> > dean
Re: attach jdk source didn't work, [message #86059 is a reply to message #86044] Sun, 17 August 2003 14:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: junk.xsoftware.biz

GOT IT. valuable lesson learned. When installing eclipse, it picked the
1.4.2 JRE(which probably doesn't have debugging turned on. Funny thing is
I installed the jdk which installed the jre. You would think eclipse
would pick the jdk and not the jre. It would be nice if eclipse told me
when I attached the source that these jars did not have debug information
and to try the jdk, not the jre. spent hours on this one. Glad to have
it done with.
hope this helps someone else out there and they find this thread,
dean



Dean Hiller wrote:

> I just thought of something else. possibly jdk1.4.2(sun's) was not
> compiled with debugging options on. I somehow got to Thread.exit() and it
> says
> line: not available [local variables unavailable] when the program was
> exiting. It still does not step into LogManager.getLogManager though and
> say the source is not available. Anybody successful with using 1.4.2?
> thanks,
> dean



> Dean Hiller wrote:

> > Here is a little more info. I tried to a library without attaching the
> > source, and when I step into it, it says that it cannot find the source,
> > and gives a button where I can attach the source to it and that works!!!!,
> > but the jdk does not prompt me for it's source for some reason. Something
> > must be wrong in the step filtering because eclipse must be not even
> > trying to step into it when I hit the step into button. Any ideas on
> > this??


> > Dean Hiller wrote:

> > > I tried a few things and I still can't step into the 1.4.2 source. Here
> > > is what I did so far

> > > Window->Preferences, Java->Installed JRE's, clicked on my JRE and
clicked
> > > Edit. Added the src.zip to the rt.jar. After this, I verified it
> worked...


> > > Project -> Properties, then selected Java Build Path, then the Libraries
> > > tab. I then expanded JRE System Library, and then expanded rt.jar and it
> > > showed the source I had attached.

> > > I then tried to verify another way which failed!!!!
> > > From package explorer, I expanded JRE System Library and found the
> > > FileInputStream class and double clicked it. Eclipse told me the source
> > > wasn't found, and luckily had an attach feature. I used that to attach
> > > the source, and all seemed to be attached fine.

> > > I then tried debugging and stepping into FileInputStream constructor and
> > > that did not work.

> > > I read some stuff on the forum about step filtering and decided to
reverse
> > > that by doing this....
> > > Window->Preferences, Expand Java->Expand Debug->Select Step Filtering.
> > > Clicked on the Enable All button.

> > > Tried debugging, still can't step into FileInputStream constructor. I
> > > then tried disabling all, tried again and still can't step into the
source.

> > > What am I missing? I have been looking around the forums awhile and
> > > didn't see anything else I could be doing wrong. Only saw the stepping
> > > into String and Step filtering posts.
> > > thanks for any help,
> > > dean
Re: attach jdk source didn't work, [message #86990 is a reply to message #86044] Wed, 20 August 2003 05:42 Go to previous message
Eclipse UserFriend
I think you use a JRE not the JDK.
The jdk does have some debug options but not all.

If you want all run this ant script in the root of the jdk dir (c:\jdk1.4.2)

johan

"Dean Hiller" <junk@xsoftware.biz> wrote in message news:bhoems$cr4$1@eclipse.org...
> I just thought of something else. possibly jdk1.4.2(sun's) was not
> compiled with debugging options on. I somehow got to Thread.exit() and it
> says
> line: not available [local variables unavailable] when the program was
> exiting. It still does not step into LogManager.getLogManager though and
> say the source is not available. Anybody successful with using 1.4.2?
> thanks,
> dean
>
>
>
> Dean Hiller wrote:
>
> > Here is a little more info. I tried to a library without attaching the
> > source, and when I step into it, it says that it cannot find the source,
> > and gives a button where I can attach the source to it and that works!!!!,
> > but the jdk does not prompt me for it's source for some reason. Something
> > must be wrong in the step filtering because eclipse must be not even
> > trying to step into it when I hit the step into button. Any ideas on
> > this??
>
>
> > Dean Hiller wrote:
>
> > > I tried a few things and I still can't step into the 1.4.2 source. Here
> > > is what I did so far
>
> > > Window->Preferences, Java->Installed JRE's, clicked on my JRE and clicked
> > > Edit. Added the src.zip to the rt.jar. After this, I verified it
> worked...
>
>
> > > Project -> Properties, then selected Java Build Path, then the Libraries
> > > tab. I then expanded JRE System Library, and then expanded rt.jar and it
> > > showed the source I had attached.
>
> > > I then tried to verify another way which failed!!!!
> > > From package explorer, I expanded JRE System Library and found the
> > > FileInputStream class and double clicked it. Eclipse told me the source
> > > wasn't found, and luckily had an attach feature. I used that to attach
> > > the source, and all seemed to be attached fine.
>
> > > I then tried debugging and stepping into FileInputStream constructor and
> > > that did not work.
>
> > > I read some stuff on the forum about step filtering and decided to reverse
> > > that by doing this....
> > > Window->Preferences, Expand Java->Expand Debug->Select Step Filtering.
> > > Clicked on the Enable All button.
>
> > > Tried debugging, still can't step into FileInputStream constructor. I
> > > then tried disabling all, tried again and still can't step into the source.
>
> > > What am I missing? I have been looking around the forums awhile and
> > > didn't see anything else I could be doing wrong. Only saw the stepping
> > > into String and Step filtering posts.
> > > thanks for any help,
> > > dean
>
>


  • Attachment: build.xml
    (Size: 3.20KB, Downloaded 201 times)
Previous Topic:Is there a flow chart diagram plugin available
Next Topic:Hot to use exclusion filters
Goto Forum:
  


Current Time: Sat Jul 19 01:56:49 EDT 2025

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

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

Back to the top