SECTION 13
The NetBeans IDE 6.1 Installer
The NetBeans IDE 6.1 Installer
The NetBeans IDE 6.1 installer has a few hidden customization features that you can access through
the command line. Note that these tricks do not work with the NetBeans installer for the Mac OS.
Tip 93: Strip GlassFish/Tomcat from the Web & Java EE Installer
If you already have web servers installed, you can strip the GlassFish/Tomcat installers from the
NetBeans IDE for Web & Java EE installer.
1. Click the Windows Start button and select Run... to access the Windows command line.
Change to the directory where you downloaded the Web & Java EE installer.
2. Start the installer using the following command:
netbeans-6.1-javaee-windows.exe --userdir tmp --create-bundle bundle.jar
3. The NetBeans Installer window opens, showing the installer contents; click Customize.
4. Uncheck GlassFish and/or Tomcat from the list. Click OK.
5. On the Pre-Create Bundle Summary page, click Create to create the slimmer installer bundle.
Click Finish.
6. The installer has created a file named bundle.exe in your working directory. Rename the file to
make it easier to identify:
rename bundle.exe netbeans-6.1-javaee-noservers-windows.exe
7. Delete the temporary directory tmp.
158
© 2009 Sun Microsystems. All rights reserved.
This publication is protected by copyright. Please see page 2 for more details.
100 NetBeans
IDE Tips & Tricks
by Ruth Kusterer
SECTION 13
The NetBeans IDE 6.1 Installer
Run netbeans-6.1-javaee-noservers-windows.exe to install the NetBeans IDE for Web & Java EE
installer without the web servers.
Tip Source
http://wiki.netbeans.org/NetBeansInstallerTipsAndTricks
Tip 94: Convert a NetBeans Installer for Windows to Linux
Download the installer for either the Java SE, C/C++, Ruby, or Web & Java EE pack (note the restric-
tions at the end of this tip). In the following example, I will use the NetBeans IDE for Java SE installer.
1. Click the Windows Start button and select Run... to access the Windows command line.
Change to the directory where you downloaded the installer.
2. Start the installer using the following command:
netbeans-6.1-javase-windows.exe --userdir tmp --create-bundle bundle.jar --platform linux
3. The NetBeans Installer window opens, showing the installer contents.
4. To customize the installer, click Customize, uncheck the packs and/or web servers that you want
to exclude from the NetBeans installer, then click OK. To leave the set of packs as is, click Next.
5. On the Pre-Create Bundle Summary page, click Create to create an installer bundle for Linux.
Click Finish.
6. The installer has created a file named bundle.sh in your working directory. Rename the file to
make it easier to identify:
rename bundle.sh netbeans-6.1-javase-linux.sh
7. Delete the temporary directory tmp.
159
© 2009 Sun Microsystems. All rights reserved.
This publication is protected by copyright. Please see page 2 for more details.
100 NetBeans
IDE Tips & Tricks
by Ruth Kusterer
SECTION 13
The NetBeans IDE 6.1 Installer
You can now copy and run the netbeans-6.1-javase-linux.sh file on a Linux system to install the
NetBeans IDE for Java SE.
Restrictions:
. When converting the NetBeans IDE for Java EE installer, be aware that the included GlassFish
installer is not converted for Linux. You need at least one web server (e.g., GlassFish or Tomcat)
on your Linux system to be able to use the NetBeans IDE for Java EE installer.
. You can convert neither the full installer nor the NetBeans IDE Mobility installer from
Windows to Linux, since required native files would be missing.
Tip Source
http://wiki.netbeans.org/NetBeansInstallerTipsAndTricks
Tip 95: Turn a Full Installer into a Java SE, C/C++, Ruby,
or UML Pack Installer
If you have downloaded the full NetBeans Installer, you can turn it into a slimmer installer that
only installs the set of packs you really need.
1. Click the Windows Start button and select Run... to access the Windows command line.
Change to the directory where you downloaded the full NetBeans IDE installer.
2. Start the installer using the following command:
netbeans-6.1-windows.exe --userdir tmp --create-bundle bundle.jar
3. The NetBeans Installer window opens, showing the installer contents; click Customize.
160
© 2009 Sun Microsystems. All rights reserved.
This publication is protected by copyright. Please see page 2 for more details.
100 NetBeans
IDE Tips & Tricks
by Ruth Kusterer

Get Checkered Flag Projects: 10 Rules for Creating and Managing Projects That Win! Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.