This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 108415 [details] Java source root available in 6.9.1 Product Version: NetBeans IDE 7.0 (Build 201104080000) Java: 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02 System: Linux version 2.6.35-22-generic running on amd64; UTF-8; cs_CZ (nb) Userdir: /home/cesilko/.netbeans/7.0 It is not possible to determine whether JDK sources are taken into account or not during Debugging. The <JAVA_HOME>/src.zip node is missing in 7.0 while it was available in 6.9.1 so this is a regression. See attached screenshots. Steps to reproduce: =================== 1. Launch NetBeans IDE 7.0 with empty userdir. 2. Generate new Anagram Game sample project and let it open. 3. Invoke "Window > Debugging > Sources" from main menu. 4. You will see two enabled nodes <ANAGRAM_PROJECT_PATH>/src and <ANAGRAM_PROJECT_PATH>/test entries but no <JAVA_HOME>/src.zip entry.
Created attachment 108416 [details] Java source root NOT available in 7.0.
After further reproduction attempts, I've found out that I'm able to reproduce this issue only on Open JDK. Open JDK does not have src.zip associated, therefore it's not possible to use JDK sources during debugging. When you reproduce this, please verify that Tools -> Java Platforms does not show anything in the Sources tab. When I specify the JDK explicitly (like --jdkhome /opt/java/jdk1.6.0_24) the problem can not be reproduced and I do see the JDK sources correctly. Please verify.
Created attachment 113316 [details] Screenshot of missing JDK source root on Mac OS X I must reopen the bug because I am not able to turn on/off taking Java sources into debugging session. This is NetBeans IDE 7.1 RC1 candidate build #201111171527.
I do not know if you have correctly associated the src.zip to your JDK platform on Mac. Therefore this is incomplete.
Created attachment 120905 [details] Java source root NOT available in 7.2 RC1.
And here I am again with another attempt to point out that JDK sources don't show up. This time it's on Windows 7 and except me also Jiri Skrivanek reproduced the bug. Please note on the screenshot that I used the --jdkhome switch.
It turned out to be a problem with missing src.zip file in the JDK installation. ${JDK_HOME}/src.zip
The presence of platform sources can be verified in Tools -> Java Platforms, in Sources tab.
Verifying. Thanks for your help.