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 87540 - installs .exes on Mac OS X
Summary: installs .exes on Mac OS X
Status: RESOLVED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P3 blocker with 1 vote (vote)
Assignee: dlipin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-19 16:01 UTC by santafen
Modified: 2007-09-24 13:44 UTC (History)
1 user (show)

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 santafen 2006-10-19 16:01:25 UTC
Netbeans installs a bunch of exe files (windows only!) on Mac OS X. This makes the installed bundle 
MUCH larger than it needs to be, and there is really NO valid reason for including windows binaries in a 
Mac distro.

[slmpk16-slab-dhcp-069-208:Resources/NetBeans/bin] davidgs% ls -l
total 168
- -rw-r--r--   1 davidgs  staff  28672 Jan 25  2006 nb.exe
- -rwxr-xr-x   1 davidgs  staff   2972 Jan 25  2006 netbeans
- -rw-r--r--   1 davidgs  staff   5338 Jan 25  2006 netbeans.cmd
- -rw-r--r--   1 davidgs  staff  41472 Jan 25  2006 netbeans.exe

As you can see, two Windows executables are installed on Mac OS X, and they are not small, either. Is 
there a goode reason for this? Or does the build process for Mac OS X just do a sloppy job of building 
the package?

[slmpk16-slab-dhcp-069-208:Resources/NetBeans/bin] davidgs% file nb.exe
nb.exe: MS Windows PE 32-bit Intel 80386 console executable not relocatable
[slmpk16-slab-dhcp-069-208:Resources/NetBeans/bin] davidgs% file netbeans.exe
netbeans.exe: MS Windows PE 32-bit Intel 80386 GUI executable not relocatable
[slmpk16-slab-dhcp-069-208:Resources/NetBeans/bin] davidgs% file netbeans.cmd
netbeans.cmd: ASCII C program text, with CRLF line terminators
[slmpk16-slab-dhcp-069-208:Resources/NetBeans/bin] davidgs%

And then again in ../platform6/lib:
[slmpk16-slab-dhcp-069-208:NetBeans/platform6/lib] davidgs% ls -l
total 1464
- -rw-r--r--   1 davidgs  staff  194680 Jan 25  2006 boot.jar
- -rwxr-xr-x   1 davidgs  staff   10916 Jan 25  2006 nbexec
- -rw-r--r--   1 davidgs  staff    6792 Jan 25  2006 nbexec.cmd
- -rw-r--r--   1 davidgs  staff   15360 Jan 25  2006 nbexec.exe
- -rw-r--r--   1 davidgs  staff   21223 Jan 25  2006 org-openide-modules.jar
- -rw-r--r--   1 davidgs  staff  487480 Jan 25  2006 org-openide-util.jar
Comment 1 mslama 2006-11-02 13:04:15 UTC
Fixed in main trunk for tar.gz generated for Mac OS. It is not fixed in asbundle
installer as I expect it will be replaced by new installer for NB 6.0.
'netbeans' and 'nbexec' shell script are left. Remaining launchers are deleted.

/cvs/installer/mac/build.xml
new revision: 1.19; previous revision: 1.18
Comment 2 mslama 2006-11-02 13:05:56 UTC
I reopen and reassign to asbundle installer. It will be closed as asbundle
installer will be replaced.
Comment 3 mslama 2006-12-07 16:18:08 UTC
Delete only IDE launchers NOT platform launchers (as platform launchers are used
by apisupport):
/cvs/installer/mac/build.xml
new revision: 1.20; previous revision: 1.19

/cvs/installer/asbundle/build.xml
new revision: 1.37; previous revision: 1.36
Comment 4 mslama 2006-12-11 14:06:22 UTC
jbossbundle:
/cvs/installer/jbossbundle/build.xml
new revision: 1.3; previous revision: 1.2
Comment 5 Michal Mocnak 2006-12-15 11:54:12 UTC
Verified
Comment 6 santafen 2007-09-17 13:57:32 UTC
Seems this is back in 6.0 ... 
[DavidsMacBookPro:NetBeans/NetBeans 6.0 Beta 1.app/Contents] davidgs% find . | grep .exe

./Resources/NetBeans/harness/launchers/app_w.exe
./Resources/NetBeans/harness/launchers/app.exe
./Resources/NetBeans/platform7/lib/nbexec.exe
Comment 7 dlipin 2007-09-24 11:12:48 UTC
we leave this files by design (see issues 105497, 107496, 90571) as it is the part of NetBeans platform.
Comment 8 santafen 2007-09-24 13:27:11 UTC
Well, then, all I can say is that the design is absolutely broken and dumb. Installing .exe Microsoft Windows executables on a Mac OS is pointless and useless 
and a waste of resources. If someone 'designed' this, they ought to rethink it. It's dumb.

Closing it as 'invalid' makes no sense, either. Having Windows executable .exes on a Mac is a bug. plain and simple. Just that the NetBeans team doesn't want 
bugs around so close to release...
Comment 9 dlipin 2007-09-24 13:44:08 UTC
santafen,

exe files are the part of cross-platform NetBeans Platform. 
We have to leave them in order to create "NetBeans Platform"-based applications to have the ability to run them later 
on windows platform.

Otherwise you`ll run into the Issue 105497.
Comment 10 mslama 2007-09-24 13:44:57 UTC
You would be surprised but some people might want to generate multiplatform app (ie. running also on Windows) even on
Mac OS. And these files are exactly for this purpose. (IMO ~50KB of additional disk space is not so big waste when
~100GB disks are used.) exe launchers for IDE itself in bin directory are not necessary and was removed from Mac
installation.