2

facing the issue while debugging eclipse screen shot "String.hashCode() line: not available"

i have refereed this , How to debug .class files in ECLIPSE? but this talks of debug build, but i want to know what is wrong with my existing system

@ siegi I have done these changes and not able to modify the highlighted(blue) par to point to C:\Program Files\Java\jdk1.6.0_31\jre\lib\rt.jar

implementing the changes

one more problem: String.hashCode() line: 1489 [local variables unavailable]

eclipse debug snapshot

Community
  • 1
  • 1
lowLatency
  • 5,534
  • 12
  • 44
  • 70
  • http://www.avajava.com/tutorials/lessons/how-do-i-view-and-debug-jdk-source-code-in-eclipse.html?page=1 – 027 Jun 26 '18 at 07:42

1 Answers1

3

I think the problem is you are using the class files from the JRE. I guess they are compiled without the LineNumberTable attribute. You can try to run your application with JDKs JRE (if I remember correctly on Windows the path should be something like C:\Program Files\Java\jdk6\jre).

siegi
  • 5,646
  • 2
  • 30
  • 42
  • thanks...but it did not work....C:\Program Files\Java\jdk1.6.0_31\jre........................as i searched on internet the other option which seems available is recompile the src.zip...but i don know to do it without using -g:none.... – lowLatency Apr 22 '12 at 04:33
  • @jain007 I don't think this should be necessary. Are you sure the JDK JRE is also used in your project? Please check this by looking at the paths in the "JRE System Library" entry in your project. Eclipse often needs some reloading or manual updating after playing around with the global JRE configuration. After checking that, is it still the same "line: not available" problem? – siegi Apr 22 '12 at 04:39
  • added one more screenshot......done the changes to C:\Program Files\Java\jdk1.6.0_31\jre.........but not able to point the rt.jar to C:\Program Files\Java\jdk1.6.0_31\jre\lib – lowLatency Apr 22 '12 at 05:21
  • @jain007 In the "Installed JREs" page try to remove all listed JREs and click on "Search…". It should find at least the JDK JRE. Click the checkbox in front of it to make it the default and restart your Eclipse. Does this help? Maybe you also need to update the defaults in the "Execution Environments" preferences page. – siegi Apr 22 '12 at 05:31
  • huh.....wow....thanks for the help and extended support to make it work..you rock in th way you give personal support – lowLatency Apr 22 '12 at 05:47
  • one more doubt..now ..not able to inspect the values – lowLatency Apr 22 '12 at 08:07
  • @jain007 Sorry, I'm not sure here, maybe it's better if you start a new question so others can help you here... – siegi Apr 22 '12 at 08:34