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 250681

Summary: Can't browse jar file(s) in a folder under the Libraries node
Product: java Reporter: justsomeguy805 <justsomeguy805>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description justsomeguy805 2015-02-25 10:13:52 UTC
Recreate:  Create a "Java Application" project, add a folder containing a jar file to the "Libraries" node.

If I add a jar file directly instead of a folder to the Libraries node, I can browse its contents every time.  With the folder I can't always do this.  

It's very inconsistent.  I thought that maybe with the folder that not having the option to browse files was standard behavior but I noticed that sometimes I can.  Sometimes there will be a jar I can browse, and then I will paste a copy of that same jar file into that directory and I won't be able to browse that newly pasted one.
Comment 1 Tomas Zezula 2015-07-10 15:18:30 UTC
The folder containing jar files is not equivalent of list of jar files in the folder.
In fact it's an invalid classpath root.

For example:
ClassPath: lib/a.jar:lib/b.jar is a valid classpath with roots: jar:file:/lib/a.jar!/ and jar:file:lib/b.jar!/.
The ClasPath lib has only root file:/lib/ neither a.jar nor b.jar are on it.
Comment 2 Tomas Zezula 2015-07-13 09:46:17 UTC
Sorry, I've misunderstood the issues.
The issues is not about the fact that the jars in lib/ folder are not on classpath but about the fact that you cannot see the jars content.
This is a valid issue.
Comment 3 Tomas Zezula 2015-07-13 09:51:27 UTC
Fixed jet-main 8fed6ea78f29
Comment 4 Quality Engineering 2015-07-14 01:17:20 UTC
Integrated into 'main-silver', will be available in build *201507140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8fed6ea78f29
User: Tomas Zezula <tzezula@netbeans.org>
Log: #250681:Can't browse jar file(s) in a folder under the Libraries node