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 221136 - Doc Icon not being used
Summary: Doc Icon not being used
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.2.1
Hardware: Macintosh Mac OS X
: P4 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-30 23:05 UTC by nleco
Modified: 2013-08-15 11:25 UTC (History)
0 users

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 nleco 2012-10-30 23:05:57 UTC
more details here: http://forums.netbeans.org/viewtopic.php?p=137614

seems that the Netbeans app contents script used to launch this app is not setting the X-dock icon correctly. or, the icon file is not placed in the right location. notice this code in the startup script:
"/Applications/NetBeans/NetBeans 7.2.1.app/Contents/Resources/NetBeans/bin/netbeans"

Code:	

case "`uname`" in
    Darwin*)
        eval launchNbexec \
            --jdkhome '"$netbeans_jdkhome"' \
            -J-Dcom.apple.mrj.application.apple.menu.about.name=NetBeans \
            -J-Xdock:name=NetBeans \
            '"-J-Xdock:icon=$progdir/../nb/netbeans.icns"' \
            --branding nb \
            --clusters '"$netbeans_clusters"' \
            -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade \
            -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense \
            ${netbeans_default_options} \
            '"$@"'
        ;;
    *)
        eval launchNbexec \
            --jdkhome '"$netbeans_jdkhome"' \
            --branding nb \
            --clusters '"$netbeans_clusters"' \
            -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade \
            -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense \
            ${netbeans_default_options} \
            '"$@"'
        ;;
esac


notice the line -J-Xdock:icon=$progdir/../nb/netbeans.icns"

the image is not in that location. it is located in:
"/Applications/NetBeans/NetBeans 7.2.1.app/Contents/Resources/netbeans.icns"

I copied that image over to:
"/Applications/NetBeans/NetBeans 7.2.1.app/Contents/Resources/nb/" and it now works correctly.

i got this info via http://alvinalexander.com/apple/mac/java-mac-native-look/dock_icon.shtml

maybe this should be changed in netbeans? hope it helps someone out. it was bugging me.
Comment 1 Libor Fischmeistr 2013-08-15 11:25:54 UTC
I thinks it's not valid any more. The launcher has been quite changed since this report.

The significant line:
'"-J-Xdock:icon=$basedir/nb/netbeans.icns"'

$basedir/nb/netbeans.icns is now valid path.