cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

FaqSilentInstallationNBPlugin

Silent installation of NetBeans plugins into the NetBeans IDE

In brief, to install NBMs from command line, the following steps should be done:

  1. Place NBMs to <cluster>/update/download directory.
    If you don`t know which cluster to use, put your nbms to extra cluster in NetBeans IDE distribution (it does not exist by default).
  2. Run NetBeans updater in the silent mode:
java -Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -Dnetbeans.home=<path-to-platform-cluster>
-Dnetbeans.user=<netbeans-user-dir> -Dnetbeans.dirs=<list-of-netbeans-clusters-separated-by-comma>
-Xms32m -XX:MaxPermSize=96m -Xverify:none -Xmx128m -cp <classpath> org.netbeans.updater.UpdaterFrame --nosplash

where

  • classpath is
    <path-to-platform-cluster>/lib/boot.jar:<java>/lib/tools.jar:<java>/lib/dt.jar:<path-to-platform-cluster>/modules/ext/updater.jar
    ,
  • <netbeans-user-dir> is the NetBeans user directory



You can get more info in the Java implementation of the updater execution in NetBeans IDE Installer (search for runUpdater() method).