Skip to main content



      Home
Home » Newcomers » Newcomers » debugging rt.jar
debugging rt.jar [message #71342] Mon, 30 May 2005 05:51 Go to next message
Eclipse UserFriend
Hi all,
I would like to step through and debug rt.jar

So far I have created an eclipse project and unzipped src.zip and allowed
eclipse to compile it, after which I jarred it back up into myrt.jar. I then
specifed this on the buid path for the project I wished to debug.

My problem is that Eclipse still complains with "absent line number
information" even thou' I ticked the checkbox to include them from within
Eclpise when I compiled the classes.

Can anyone help or has anyone been able to debug rt.jar?

Thanks
Re: debugging rt.jar [message #71711 is a reply to message #71342] Tue, 31 May 2005 14:04 Go to previous messageGo to next message
Eclipse UserFriend
I am not sure what is the problem there.
Debugging/stepping through rt works fine out of the box, ass leasst when you
use a JDK.
No need for re-compile, and all that pain.
Just works out of the box.
What is your version/config?

"Martin Holmes" <martincanbe@hotmail.com> wrote in message
news:d7f6ku$dsn$1@news.eclipse.org...
> Hi all,
> I would like to step through and debug rt.jar
>
> So far I have created an eclipse project and unzipped src.zip and allowed
> eclipse to compile it, after which I jarred it back up into myrt.jar. I
then
> specifed this on the buid path for the project I wished to debug.
>
> My problem is that Eclipse still complains with "absent line number
> information" even thou' I ticked the checkbox to include them from within
> Eclpise when I compiled the classes.
>
> Can anyone help or has anyone been able to debug rt.jar?
>
> Thanks
>
>
Re: debugging rt.jar [message #71823 is a reply to message #71711] Wed, 01 June 2005 05:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi I am running windows 2000 and using Eclipse 3.1M6.

I am also using the rt.jar located on my machine at;

C:\j2sdk1.4.2_05\jre\lib\rt.jar

I have read that by default Sun does not compile rt.jat with debug
infomation due to increased download size.

thank you



"Philippe Ombredanne" <pombredanne@nexb.com> wrote in message
news:d7i9c5$u6b$1@news.eclipse.org...
> I am not sure what is the problem there.
> Debugging/stepping through rt works fine out of the box, ass leasst when
you
> use a JDK.
> No need for re-compile, and all that pain.
> Just works out of the box.
> What is your version/config?
>
> "Martin Holmes" <martincanbe@hotmail.com> wrote in message
> news:d7f6ku$dsn$1@news.eclipse.org...
> > Hi all,
> > I would like to step through and debug rt.jar
> >
> > So far I have created an eclipse project and unzipped src.zip and
allowed
> > eclipse to compile it, after which I jarred it back up into myrt.jar. I
> then
> > specifed this on the buid path for the project I wished to debug.
> >
> > My problem is that Eclipse still complains with "absent line number
> > information" even thou' I ticked the checkbox to include them from
within
> > Eclpise when I compiled the classes.
> >
> > Can anyone help or has anyone been able to debug rt.jar?
> >
> > Thanks
> >
> >
>
>
Re: debugging rt.jar [message #71918 is a reply to message #71823] Wed, 01 June 2005 10:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Martin Holmes wrote:
> Hi I am running windows 2000 and using Eclipse 3.1M6.
>
> I am also using the rt.jar located on my machine at;
>
> C:\j2sdk1.4.2_05\jre\lib\rt.jar
>
> I have read that by default Sun does not compile rt.jat with debug
> infomation due to increased download size.

While I don't know *why* Sun does not offer an rt.jar with debug info
compiled in, it is a fact that they do not. It is possible to step
through the Java core classes that are in rt.jar, but they don't have
local variable information available when you do. That is the limitation
that people speak of, not that you can't step through them at all.

HTH,
Eric
Re: debugging rt.jar [message #72030 is a reply to message #71823] Wed, 01 June 2005 12:41 Go to previous messageGo to next message
Eclipse UserFriend
"Martin Holmes" <martincanbe@hotmail.com> wrote in message
news:d7ju2m$li5$1@news.eclipse.org...
> I have read that by default Sun does not compile rt.jat with debug
> infomation due to increased download size.
I do not know what kind of magic Eclipse is doing behind the scene, but I
never had a problem there, and have always been able to step through JRE
code nicely.
AFAIK the rt.jar that is under the JDK has been compiled in debug and is
about 4MB bigger than the rt.jar in the public JRE.
Are you sure that Eclipse runs under the JDK as opposed to the public JRE
that comes with it?
And try to start eclipse with a specific JDK:
eclipse.exe -vm c:\j2sdk1.4.2_08\bin\javaw.exe (assuming you have the
1.4.2_08 JDK installed at that location...)
Re: debugging rt.jar [message #73933 is a reply to message #72030] Sun, 05 June 2005 07:59 Go to previous message
Eclipse UserFriend
Hi again,
it seems the problem is the version of Eclipse I was using.
Infact I tried Eclipse M6 and M7 and both gave the same error. However when
I downloaded the Eclipse release build 3.02 which I believe has no Java 5.0
support and used jdk1.4 everything worked fine. I even recompiled with full
debug attributes and that gave me all the deug information I could possibly
dream of :)

I am now wondering if this a known bug in the Eclpise 3.1 milestone builds.
Hmm how do I find out..... Perhaps I should report it!

Thanks again


"Philippe Ombredanne" <pombredanne@nexb.com> wrote in message
news:d7kotp$qvn$3@news.eclipse.org...
>
> "Martin Holmes" <martincanbe@hotmail.com> wrote in message
> news:d7ju2m$li5$1@news.eclipse.org...
>> I have read that by default Sun does not compile rt.jat with debug
>> infomation due to increased download size.
> I do not know what kind of magic Eclipse is doing behind the scene, but I
> never had a problem there, and have always been able to step through JRE
> code nicely.
> AFAIK the rt.jar that is under the JDK has been compiled in debug and is
> about 4MB bigger than the rt.jar in the public JRE.
> Are you sure that Eclipse runs under the JDK as opposed to the public JRE
> that comes with it?
> And try to start eclipse with a specific JDK:
> eclipse.exe -vm c:\j2sdk1.4.2_08\bin\javaw.exe (assuming you have the
> 1.4.2_08 JDK installed at that location...)
>
>
Previous Topic:Eclipse Bug - welcome & help
Next Topic:SWT - Drop and drag
Goto Forum:
  


Current Time: Wed May 28 19:31:35 EDT 2025

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

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

Back to the top