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 105928 - Project added jars: do not read manifest file for extra jars
Summary: Project added jars: do not read manifest file for extra jars
Status: RESOLVED DUPLICATE of bug 105927
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-06 19:44 UTC by _ ludo
Modified: 2007-06-06 20:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ ludo 2007-06-06 19:44:19 UTC
Latest nb 6 build.
Create a java project, and in the "Libraries" node, add a jar that contains an
entry like

Class-Path: foo.jar 

where foo.jar is in the same directory of this jar.

If foo.jar defines the class com.acme.Foo

try to add
import com.acme.Foo;
in the main clas of your project.
You'll see a red icon on the java source editor saying  com.acme.Foo is not defined.

But build the project: it can build since javac is using the entire classpath
(including manifest entries for Class-Path)


This is a bummer for GlassFish V3 as the javaee-5.0.jar is only a empty jar that
defines impl dependent jars.
Comment 1 _ ludo 2007-06-06 20:50:16 UTC

*** This issue has been marked as a duplicate of 105927 ***