Server Command Line Options

Specifying A Configuration File

By default, the VRSpace server looks for vrspace.cfg in the current working directory. However, a configuration file can be specified at the command line:

java -jar server.jar configFileURL

For example, to use the standard configuration file vrspace.cfg located in the same directory as server.jar:

Or, if the configuration file portal.cfg is located in the subdirectory conf relative to server.jar:

Absolute references are also allowed:

Potential Pitfall: Whenever a configuration file is used by the server, it looks for the property vrspace.config within the file. This property specifies where the configuration file will be saved when the server shuts down. If the property is not present, it defaults to file:./configFileName. That means the file will be saved in the directory the server was run in which is not necessarily where the file was loaded from. Take care when working with configuration files to update this property accordingly.