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 91121 - Wrong class-path property in manifest
Summary: Wrong class-path property in manifest
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-15 12:43 UTC by Jiri Prox
Modified: 2016-07-07 07:16 UTC (History)
1 user (show)

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 Jiri Prox 2006-12-15 12:43:12 UTC
NetBeans IDE Dev (Build 200612141900)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

Class-path property ín manifest is missing last '/' when a whole folder in added
to project classpath

Steps to reproduce:
1) create new project
2) add folder "extra" to the project classpath
3) build project
-> the manifest contains line:
Class-Path: lib/extra
(the content of folder is not copied to lib - filed as separate issue)
but is should be
Class-Path: lib/extra/
Comment 1 Tomas Zezula 2007-01-04 13:06:48 UTC
The ending / is not needed.
Comment 2 Jiri Prox 2007-01-09 13:23:44 UTC
Reopening
Comment 3 Tomas Zezula 2007-02-14 16:49:09 UTC
We do not support copying of lib folders anyway. Decreasing priority.
Comment 4 Jiri Prox 2008-04-11 00:51:42 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 5 tjquinn 2009-06-16 17:26:27 UTC
Just a little more data on this.

NB seems to do something to manage the class path correctly if I:

- write an app to use getResource intending to locate a file in a library directory,
- add a directory via the library dialog,
- place a file in that directory, and
- run the app from inside NB (at least in 6.7 RC 2).

As noted earlier the generated manifest contains Class-Path: lib/extrastuff

But when I try to run from outside NB using "java -jar ..." the program cannot find that resource.

If, though, I manually hack the manifest to add the trailing slash to lib/extrastuff in the Class-Path then the app runs
successfully from outside NB as well.

It seems that the trailing slash is indeed required for Java to do the right thing outside NB, and it's too bad that the
app behaves differently when I run from NB.

In light of these facts I think this merits a P3 priority.  Agree?
Comment 6 Martin Balin 2016-07-07 07:16:20 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss