Java runtime options

Set virtual machine options

By default Pax runner will start the target framework in a new process. This means that a brand new Java Virtual Machine will be started. If you need to set some virtual machine options of this JVM you can use the --vmOptions option.

pax-run --vmOptions=<options>

where options is your usual list of virtual machine options such as -D}, {{-X and so on. Do not forget to enclose options between quotes if your list contain a space.

(info) You can use --vmo as an alias for --vmOptions
(warning) -cp virtual machine option is not supported here as the framework starter makes use of this option. If you need the -cp option you will have to use the dedicated classpath option.

Example

pax-run --vmOptions="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"

This will use the vm options to setup remote debugging in the target OSGi framework.