Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Need help debugging into rt.jar classes
Need help debugging into rt.jar classes [message #260758] Mon, 22 June 2009 16:18
Rick Horowitz is currently offline Rick HorowitzFriend
Messages: 6
Registered: July 2009
Junior Member
I'm trying to debug an xpath problem (package in rt.jar). Given that rt.jar is
compiled without local variable support, I've been trying to build a
replacement rt.jar for my jdk in Eclipse.

I'm running:
Ubuntu 9.0.4
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu7)
OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode)
Eclipse Galileo rc4 Build id: 20090611-1022

Unfortunately, I have been unable to build a replacement rt.jar due to
errors such as:

/sun/applet/ package net.sourceforge.jnlp
does not exist
import net.sourceforge.jnlp.NetxPanel;

...even though I have that class on my classpath (I don't get it!)

My build command is as follows:

javac -g -d ../build -J-Xmx1024m -nowarn -cp
/home/rick/eclipse-workspaces/projects/com.sun.javaws/bin:/u sr/lib/jvm/java-6-openjdk/jre/lib/rt.jar:../lib/jdk/src/shar e/classes:../lib/jaxws/src/share/classes:../lib/corba/src/sh are/classes:../lib/jaxp/src/share/classes:/usr/lib/jvm/java- 6-openjdk/jre/lib/tools.jar

where sourceFiles.txt contains a list of all source file names from from Ubuntu package openjdk-6-source, and the JAR files in
../lib are taken from Ubuntu package openjdk-6-source-files.

After giving up on trying to build the entire rt.jar due to unresolvable
errors, I decided to build only the package. This
was successful, and I replaced the existing xpath package in rt.jar with
my newly built one.

I set the Source Attachment for rt.jar in the Installed JRE to reference
the file from Ubuntu package openjdk-6-source.

When I try to debug into valuate(), it
doesn't work properly. Eclipse let's me set a breakpoint in that class,
but doesn't stop at the breakpoint. If I try to step into the code in the
debugger, the location of the current instruction cursor is incorrect --
it is 3 lines offset from where it should be. Also, the local variables
are not available. All I see are arg0, arg1, and the instance variables.

I've been working on this for many hours with nothing but frustration and
would really appreciate some help -- either on building a full rt.jar with
debugging support, or just getting debugging to work with the xpath

Editorial comment: I just don't understand why the Java project people do
not provide a debuggable version of Java. It's been, what, 15 years now?

Thanks to anyone who can help.

Previous Topic:Eclipse help
Next Topic:debugger stopping at a breakpoint that is not set
Goto Forum:

Current Time: Thu Mar 30 09:13:05 GMT 2017

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

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