Tools: Debugging Native and Java Code with WDB

Page 15
Tools for
Debugging
© 2001 Hewlett-Packard Company
gdb
Starting Java from gdb: Modify wrap
Problem: /opt/java1.3 directory not write-able
Often hard to modify /opt/java1.3/bin/.java_wrapper
Solution: copy the JDK and modify the copy
mkdir /tmp/java1.3
cp -r /opt/java1.3/bin /tmp/java1.3/bin
cp -r /opt/java1.3/lib /tmp/java1.3/lib
cp -r /opt/java1.3/jre /tmp/java1.3/jre
Modify the .java_wrapper in /tmp/java1.3/bin