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 176714 - Transit sample: relative path for export.path in project.properties does work
Summary: Transit sample: relative path for export.path in project.properties does work
Status: RESOLVED INVALID
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: ankinelaturu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-12 11:18 UTC by lichunzhan
Modified: 2010-02-16 18:07 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 lichunzhan 2009-11-12 11:18:51 UTC
JCDK3.0.2_ConnectedEditionb\samples\reference_apps\Transit\ClassicWalletApplet\nbproject\projcet.properties:

attribute export.path has value with relative path "..\\WalletClassicLib\\dist".

When run the applet got:
error: export file wallet.exp of package com.sun.jcdemo.wallet not found. 

If an an absolute path is replaced, then the error is gone.
export.path=C:\\dev\\samples\\reference_apps\\Transit\\WalletClassicLib\\dist
Comment 1 _ tboudreau 2009-11-12 18:42:08 UTC
This code is part of the RI, not NetBeans.

I just looked at the copy I have in a recent build of the 3.0.2 RI, and do not see export.path assigned in this file, just
export.path=
Several things could be wrong:
1.  It should not actually be set to anything, most likely
2.  The dist/ dir of the other project is almost certainly wrong, as it doesn't contain export files
3.  The Ant task (or whatever writes the script "attribute export.path has value with relative path") expects an absolute path.  This is an impossibility in sample projects, since we do not know where the user will install them.  Whatever is producing this error simply needs to accept a relative path.
Comment 2 _ tboudreau 2009-11-26 20:31:28 UTC
Anki, can you shed any light on where this property should point, and any ideas on how on earth it got set to the obviously wrong value the reporter describes?

I am guessing this should simply be correctly set up in the example;  I don't know of anything in the IDE that will transparently set it to some value, so it's really hard to figure out how this got into this configuration in the first place (or if the user was working with a pristine copy of the samples).
Comment 3 _ tboudreau 2009-12-11 18:32:12 UTC
Part of the confusion is that the dist/ directory is almost certainly wrong for the exp file root.
Comment 4 lichunzhan 2009-12-17 15:19:41 UTC
As we still need the workaround for the samples. I reopen this bug for user's reference. Please work with Anki about the detail.
Comment 5 _ tboudreau 2010-02-16 18:07:28 UTC
This sample does not exist in the current 3.0.2 RI.