Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 189105 - Platform Application does not start correctly if run by symlink to the bin/<appname>
Platform Application does not start correctly if run by symlink to the bin/<a...
Product: platform
Classification: Unclassified
Component: Launchers&CLI
PC All
: P3 (vote)
: 7.0
Assigned To: dlipin
Depends on:
  Show dependency treegraph
Reported: 2010-07-31 07:58 UTC by normen
Modified: 2010-09-01 03:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

Workaround fix for (2.13 KB, patch)
2010-07-31 08:12 UTC, normen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description normen 2010-07-31 07:58:48 UTC
The Installer creator of NB6.9 for NetBeans platform software creates non-working OSX Applications. The installer itself works on OSX but when double-clicking the application it creates a generic, empty NetBeans platform application starts up.

I was able to fix the installer by tweaking the created application in the install() method of the used file in the following way:
1) Rename the link to the executable in Contents/MacOSX from "exectuable" to the application branding name
2) Copy the real icns icon file to Contents/Resources/*application_branding_name*.icns (no link!)
3) Update the executable name and icon name in Info.plist

The first step fixes the application starting up into a generic app and the second step fixes a problem where the icon in the dock would switch to the generic java icon when the application starts.


P.S. During debugging this I had to find out that the installer creator function always uses the harness folder from *NetBeans Installation*/harness even if theres a different harness folder set for the current project. Would be nice if the function used the projects harness folder.
Comment 1 normen 2010-07-31 08:12:10 UTC
Created attachment 101132 [details]
Workaround fix for

Workaround fix for
Location: *NB Install Dir*/harness/nbi/stub/ext/components/products/helloworld/src/org/mycompany/
Comment 2 dlipin 2010-08-31 14:14:05 UTC
The actual reason is that the current platform application launcher does not handle correctly the case when it is run via symlink to the launcher.

In fact, without this fix the application starts with
Current Directory = /
User Directory = /
in the messages.log and that reminds me the Issue #189656.

This is fixed in core-main#212edbb66859.

You can do the same in the netbeans installation directory, see file harness/launchers/
Comment 3 Quality Engineering 2010-09-01 03:28:16 UTC
Integrated into 'main-golden', will be available in build *201009010001* on (upload may still be in progress)
User: Dmitry Lipin <>
Log: Issue #189105 Platform Application does not start correctly if run by symlink to the bin/<appname>

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo