What are the NetBeans startup parameters (a.k.a command-line options)?

Type 'netbeans --help' to find out.

Command-line switches can be entered using GNU style, meaning they are preceded with two hyphens rather than one (e.g.: --help) or single-letter switches (e.g.: -h). JVM flags are entered using only one hyphen as in -Jjvm_flag, for example.

You can use the following command-line switches:

  • -h, --help
    Print descriptions of common startup parameters.
  • --jdkhome jdk_home_dir
    Use the specified version of the JDK instead of the default JDK. More info .
  • --cp:p classpath
    Prepend the specified classpath to the IDE's classpath. This option is generally not recommended for any purpose.
  • --cp:a classpath
    Append the specified classpath to the IDE's classpath.
  • -Jjvm_flag
    Pass the specified flag directly to the JVM, for example -J-Xmx512m
  • -J-Dother_property
    Define the specified property, examples: -J-Dapple.laf.useScreenMenuBar=true -J-Dnetbeans.winsys.statusLine.in.menuBar=true -J-Dsun.java2d.noddraw=true
  • --laf ui_class_name
    Use a given class as the IDE's look and feel. More info .
  • --fontsize size
    Use a given size in points as the basic font size for the IDE user interface. More info .
  • --locale language[[[:country[[:variant | [:country[[:variant]]]
    Use the specified locale.
  • --userdir userdir
    Explicitly specify the userdir, which is the location in which user settings are stored. More info .
  • --cachedir cachedir
    Explicitly specify the cachedir, which is the location in which e.g. project scans are stored (could become large and should perform fast). More info .
  • --open file, --open file:line
    Opens the file in the IDE's source editor at the specified line. More info .
  • --open-group NAME
    Opens the NAME project group.
  • --close-group
    Close the last opened project group and set project group to None.
  • --list-groups
    List the available project groups.

You can make those settings permanent:

See: FaqNetbeansConf

Applies to: NetBeans 4.x, 5.x, 6.x, 7.x, 8.x

Platforms: All

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