FaqSilentInstallationNB61

NetBeans IDE Silent Installation

Is there a way to install NetBeans IDE silently?

First, run installer to create special options file and install IDE on this system:

netbeans-6.1-windows.exe --record state.xml

Second, perform silent installation on the other system:

netbeans-6.1-windows.exe --silent --state state.xml

Any there other means available instead of that two-steps process?

Yes, there are. Run the following command, cross fingers and be patient while the installation is completed:

netbeans-6.1-windows.exe --silent

Simple silent installation with customization

There is a joint solution to perform simple silent installation and, from the other side, use some some customization.
There is a number of system properties (passing via -J-D<property>=<value> to the launcher) that affect installation process:

Property name Meaning Example Comments
nb-base.installation.location
NetBeans installation location netbeans-6.1-windows.exe --silent "-J-Dnb-base.installation.location=C:\Program Files\NetBeans 6.1"
glassfish.installation.location
GlassFish installation location netbeans-6.1-windows.exe --silent -J-Dglassfish.installation.location=C:\Sun\glassfish
glassfish-mod.installation.location
GlassFish v3 installation location netbeans-6.8-windows.exe --silent -J-Dglassfish-mod.installation.location=C:\glassfish-v3
glassfish-mod-sun.installation.location
Sun GlassFish Enterprise Server v3 installation location netbeans-6.8-windows.exe --silent -J-Dglassfish-mod-sun.installation.location=C:\Sun\glassfish-v3
tomcat.installation.location
Tomcat installation location netbeans-6.1-javaee-windows.exe --silent -J-Dtomcat.installation.location=C:\Apache\tomcat
sjsas.installation.location
AppServer installation location java-tools-bundle-update5-windows.exe --silent -J-Dsjsas.installation.location=C:\Sun\AppServer Valid for Java Tools Bundle
jdk.installation.location
JDK installation location jdk6-u6-nb6_1-windows.exe --silent -J-Djdk.installation.location=C:\Java\jdk1.6.0_06 Valid for NetBeans/JDK6 bundles and NetBeans/JDK5 bundles
mysql.installation.location
MySQL installation location netbeans-6.1-mysql-windows.exe --silent -J-Dmysql.installation.location="C:\Program Files\MySQL\MySQL 5.0 Server" Valid for MySQL Bundle
nb-base.jdk.location
JDK to be used by NetBeans that is installing netbeans-6.1-windows.exe --silent "-J-Dnb-base.jdk.location=C:\Program Files\Java\jdk1.6.0_04"
glassfish.jdk.location
JDK to be used by GlassFish that is installing netbeans-6.1-windows.exe --silent "-J-Dglassfish.jdk.location=C:\Program Files\Java\jdk1.6.0_04"
sjsas.jdk.location
JDK to be used by AppServer that is installing java-tools-bundle-update5-windows.exe --silent "-J-Dsjsas.jdk.location=C:\Program Files\Java\jdk1.6.0_04" Valid for Java Tools Bundle

What happens if I have everything from this bundle already installed?

Installer just exit with zero (0) error code.

Can I perform silent uninstallation?

Yes. Pass
--silent
flag to the uninstaller of NetBeans/GlassFish/Tomcat/AppServer and the appropriate product will be uninstalled rather guickly with no GUI.





Applies to: NetBeans IDE version>=6.1
Platforms: Windows, Linux, Solaris (plus Mac OS X for Java Tools Bundle Update 5)

Not logged in. Log in, Register

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