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 247499 - Manually renamed NB installation not working properly
Summary: Manually renamed NB installation not working properly
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.0.1
Hardware: Macintosh Mac OS X
: P4 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 15:45 UTC by Polyergic
Modified: 2015-07-13 12:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log (71.09 KB, application/octet-stream)
2014-09-26 16:56 UTC, Polyergic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Polyergic 2014-09-26 15:45:53 UTC
I used NetBeans 7.0.1 several years ago, and at first launch of 8.0.1 I chose not to import the existing settings.

File|New Project... starts with Choose Project, I have to click Next twice to get to Finding Feature, which is blank, and the only usable buttons are Back and Cancel.


Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Mac OS X version 10.9.4 running on x86_64
Java; VM; Vendor = 1.7.0_17
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Comment 1 Stanislav Aubrecht 2014-09-26 16:06:26 UTC
Please attach your IDE log file and reopen, thanks.
Comment 2 Polyergic 2014-09-26 16:12:24 UTC
The box to attach log was checked, how do I attach the log when that doesn't work?
Comment 3 Stanislav Aubrecht 2014-09-26 16:29:33 UTC
wiki.netbeans.org/FaqLogMessagesFile
Comment 4 Polyergic 2014-09-26 16:56:10 UTC
Created attachment 149544 [details]
Log
Comment 5 Stanislav Aubrecht 2014-09-26 17:09:10 UTC
The log complains about missing file /Applications/NetBeans/NetBeans 8.0.1.app/Contents/Resources/NetBeans/ide/modules/org-netbeans-modules-usersguide.jar

How did you install NetBeans 8.0.1?
Comment 6 Polyergic 2014-09-26 18:28:07 UTC
I renamed the old NetBeans folder to "NetBeans 7", downloaded netbeans-8.0.1-macosx.dmg and ran the installer, then renamed the new NetBeans folder to "NetBeans 8".

(I've been in the habit of renaming with version numbers after some unrelated programs had problematic new versions; now when that happens I can just run the old version, or, as in the original case, use different versions for different projects.)
Comment 7 Polyergic 2014-09-29 16:41:54 UTC
It looks like there's an inappropriately hardcoded path to something inside the app bundle.  Apple seems to have good documentation of how to handle bundled resources using native APIs, but I didn't find anything obvious about what to do in Java.

Accessing a Bundle’s Contents: https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/AccessingaBundlesContents/AccessingaBundlesContents.html

Accessing Files and Directories: https://developer.apple.com/Library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/AccessingFilesandDirectories/AccessingFilesandDirectories.html