GitHub user manueljordan added a comment to the discussion: Let configure 
"Project Location" permanently to other different than 
"/home/<username>/NetBeansProjects"

Hello mbien

Big thanks for the reply

> you can also set it via start option, e.g: -J-Dnetbeans.projects.dir=/tmp

Yes, it is correct. It works. 

Very interesting that option, normally is used `-D` but it has `-J-D` instead

BTW How did you know that approach? Can you share an official link about that?

It because the `./netbeans --help` command shows

```bash
./netbeans --help
Usage: /home/manueljordan/Whiteroom/apache/netbeans/31/platform/lib/nbexec 
{options} arguments

General options:
  --help                show this help 
  --jdkhome <path>      path to Java(TM) 2 SDK, Standard Edition
  -J<jvm_option>        pass <jvm_option> to JVM

  --cp:p <classpath>    prepend <classpath> to classpath
  --cp:a <classpath>    append <classpath> to classpath

Module reload options:
  --reload /path/to/module.jar  install or reinstall a module JAR file

Additional module options:
  --modules                                 
  --refresh                                 Refresh all catalogs
  --list                                    Prints the list of all modules, 
their versions and enablement status
  --install <arg1>...<argN>                 Installs provided JAR files as 
modules
  --disable <arg1>...<argN>                 Disable modules for specified 
codebase names
  --enable <arg1>...<argN>                  Enable modules for specified 
codebase names
  --update <arg1>...<argN>                  Updates all or specified modules
  --update-all                              Updates all modules
  --extra-uc <arg>                          Add a extra Update Center (URL)
  --direct-disable <arg1>...<argN>          Disable module immediately
  --start-java-language-server [<arg>]      Starts the Java Language Server
  --start-java-debug-adapter-server [<arg>] Starts the Java Debug Adapter Server
  --open file1[:line1]...                   open specified file(s), possibly at 
given location; can also pass project directories
  --open-group NAME                         open a project group by shortened 
or full name (or unique substring)
  --close-group                             close any open project group
  --list-groups                             list available project groups

Core options:
  --laf <LaF classname> use given LookAndFeel class instead of the default
  --fontsize <size>     set the base font size of the user interface, in points
  --locale <language[:country[:variant]]> use specified locale
  --userdir <path>      use specified directory to store user settings
  --cachedir <path>     use specified directory to store user cache, must be 
different from userdir
  --nosplash            do not show the splash screen
```

Where the `  -J<jvm_option>        pass <jvm_option> to JVM` is the most close 
it to your solution

Thanks in advance

GitHub link: 
https://github.com/apache/netbeans/discussions/9587#discussioncomment-18293121

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to