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.

Bug 198761 - Missing Java source root in NetBeans IDE 7.0
Summary: Missing Java source root in NetBeans IDE 7.0
Status: VERIFIED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jiri Kovalsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 11:36 UTC by Jiri Kovalsky
Modified: 2012-06-15 12:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java source root available in 6.9.1 (62.06 KB, image/png)
2011-05-20 11:36 UTC, Jiri Kovalsky
Details
Java source root NOT available in 7.0. (58.20 KB, image/png)
2011-05-20 11:36 UTC, Jiri Kovalsky
Details
Screenshot of missing JDK source root on Mac OS X (222.45 KB, image/png)
2011-11-18 13:30 UTC, Jiri Kovalsky
Details
Java source root NOT available in 7.2 RC1. (843.08 KB, image/jpeg)
2012-06-15 12:26 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2011-05-20 11:36:31 UTC
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.
Comment 1 Jiri Kovalsky 2011-05-20 11:36:55 UTC
Created attachment 108416 [details]
Java source root NOT available in 7.0.
Comment 2 Martin Entlicher 2011-06-01 16:06:32 UTC
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.
Comment 3 Jiri Kovalsky 2011-11-18 13:30:13 UTC
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.
Comment 4 Martin Entlicher 2012-03-27 09:31:51 UTC
I do not know if you have correctly associated the src.zip to your JDK platform on Mac. Therefore this is incomplete.
Comment 5 Jiri Kovalsky 2012-06-15 12:26:27 UTC
Created attachment 120905 [details]
Java source root NOT available in 7.2 RC1.
Comment 6 Jiri Kovalsky 2012-06-15 12:28:38 UTC
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.
Comment 7 Martin Entlicher 2012-06-15 12:40:14 UTC
It turned out to be a problem with missing src.zip file in the JDK installation. ${JDK_HOME}/src.zip
Comment 8 Martin Entlicher 2012-06-15 12:41:32 UTC
The presence of platform sources can be verified in Tools -> Java Platforms, in Sources tab.
Comment 9 Jiri Kovalsky 2012-06-15 12:43:00 UTC
Verifying. Thanks for your help.