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 255708

Summary: When I click Netbeans icon on taskbar (I pinned it to taskbar), it runs an creates a new icon on taskbar.
Product: platform Reporter: huangnam
Component: Launchers&CLIAssignee: Libor Fischmeistr <lfischmeistr>
Status: REOPENED ---    
Severity: normal CC: anebuzelsky
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description huangnam 2015-10-06 04:01:44 UTC
Product Version = NetBeans IDE 8.1 Beta (Build 201508041349)
Operating System = Windows 8.1 version 6.3 running on amd64
Java; VM; Vendor = 1.8.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Comment 1 huangnam 2015-10-06 04:01:49 UTC
Created attachment 156534 [details]
IDE log
Comment 2 Libor Fischmeistr 2015-10-06 09:54:37 UTC
Please check if the taskbar shortcut launches netbeans.exe or netbeans64.exe
Comment 3 huangnam 2015-10-07 01:49:40 UTC
(In reply to Libor Fischmeistr from comment #2)
> Please check if the taskbar shortcut launches netbeans.exe or netbeans64.exe

The taskbar shortcut's target is "C:\Program Files\NetBeans 8.1 Beta\bin\netbeans.exe"
Start in: "C:\Program Files\NetBeans 8.1 Beta"
Comment 4 Libor Fischmeistr 2015-10-07 06:48:30 UTC
(In reply to huangnam from comment #3)
> The taskbar shortcut's target is "C:\Program Files\NetBeans 8.1
> Beta\bin\netbeans.exe"
> Start in: "C:\Program Files\NetBeans 8.1 Beta"

Then the reason is simple, you are launching NetBeans on 64bit Java, but using 32bit launcher. Please use netbeans64.exe and the issue with the second icon in taskbar will disappear.
Comment 5 huangnam 2015-10-07 10:23:59 UTC
(In reply to Libor Fischmeistr from comment #4)
> (In reply to huangnam from comment #3)
> > The taskbar shortcut's target is "C:\Program Files\NetBeans 8.1
> > Beta\bin\netbeans.exe"
> > Start in: "C:\Program Files\NetBeans 8.1 Beta"
> 
> Then the reason is simple, you are launching NetBeans on 64bit Java, but
> using 32bit launcher. Please use netbeans64.exe and the issue with the
> second icon in taskbar will disappear.

Thank you! That's a solution.
But I think there is an issue when netbeans creates shortcut in startmenu.
I install netbeans 64bit, but it creates shortcut links to netbeans.exe instead of netbeans64.exe.
Thank you very much for your help!
Comment 6 Libor Fischmeistr 2015-10-07 11:07:54 UTC
(In reply to huangnam from comment #5)
> Thank you! That's a solution.
> But I think there is an issue when netbeans creates shortcut in startmenu.
> I install netbeans 64bit, but it creates shortcut links to netbeans.exe
> instead of netbeans64.exe.
> Thank you very much for your help!

That may be an issue. You can attach the installer log (http://wiki.netbeans.org/NBIFAQ#What_information_is_needed_for_a_successful_bug_report.). Then we will decide if the new issue should be reported.
Comment 7 gameshas 2015-11-16 06:50:45 UTC
the problem persists in netbeans 8.1 final.
in this release the there are two separate downloads available, 32bit and 64bit. Previously only there was only one. when 64bit version is downloaded it still creates a shortcut to 32 bit version.
Netbeans desktop shortcut target is:
"C:\Program Files\NetBeans 8.1\bin\netbeans.exe"
 
it should be:
"C:\Program Files\NetBeans 8.1\bin\netbeans64.exe"