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 237682 - Netbeans configuration within Netbeans does not recognize valid Windows Junctions as valid software (JDK7 and ScreenBuilder 1.1).
Summary: Netbeans configuration within Netbeans does not recognize valid Windows Junct...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: NO74
Depends on:
Blocks:
 
Reported: 2013-10-25 19:26 UTC by g_e_pii42
Modified: 2016-07-07 07:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (67.83 KB, text/plain)
2013-10-25 19:26 UTC, g_e_pii42
Details

Note You need to log in before you can comment on or make changes to this bug.
Description g_e_pii42 2013-10-25 19:26:19 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08

Easy
When I tried to report the following the login box popped up. I hit "register" (netbeans.org) and it hung up FireFox. So did it separately and worked fine.

Annoying
For software versions of third party software, I used Windows Junctions. That is create a Junction (link) to the current version (change when I update). I point all my dependent software to the Junction for the product. That way I never have to change other software, all I have to do is change the Junction. Also allows me to put things in different places; for example, D: drive.

Trying to set a configuration from inside Netbeans does not recognize a Junction for either JDK7 or ScreenBuilder 1.1. So I set them up with the defaults and chased down the propertiies files or other files and changed them to point to the Junction. That worked fine, but it would be nice if all your Windows products recognized Junctions as valid instances of the associated packages.
Comment 1 g_e_pii42 2013-10-25 19:26:23 UTC
Created attachment 141567 [details]
IDE log
Comment 2 Jaroslav Havlin 2013-10-31 10:12:32 UTC
The problem is that JFileChooser doesn't support junctions.

When JFileChooser.getSelectedFile() is called in method
org.netbeans.modules.java.platform.wizard.LocationChooser.propertyChange (line 141)
just after a junction was selected in the file chooser, null is returned.

I'm not sure there is a reasonable fix for this JDK feature.

Reassigning to java/Platform. Please evaluate it. Thank you.
Comment 3 Martin Balin 2016-07-07 07:18:50 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