|Need help debugging into rt.jar classes [message #260758]
||Mon, 22 June 2009 16:18
| Rick Horowitz
Registered: July 2009
I'm trying to debug an xpath problem (package |
com.sun.org.apache.xpath.internal.jaxp 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.
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/PluginAppletViewer.java:103: package net.sourceforge.jnlp
does not exist
...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
source.zip 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 com.sun.org.apache.xpath 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 source.zip file from Ubuntu package openjdk-6-source.
When I try to debug into
com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.e 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.
Powered by FUDForum
. Page generated in 0.15313 seconds