Skip Headers

Oracle® JRockit Virtual Edition User's Guide Release 2.0.0 Part Number E22518-01 |
Home | Contents | Contact Us

Previous | Next
| View PDF

# -p (--patch)

You can use the `-p` option to replace the Oracle JRockit Virtual Edition binary (JVM, the kernel, and services) within the virtual machine with a new release.

Note:

The `-p` option does not modify the Java application within the virtual machine, the configuration of the virtual machine, and the virtual machine log files.

- To change the configuration of the virtual machine, use the -r (--reconfigure) option.

- To modify the Java application, use the -f (--file) option.

Syntax

    java -jar jrockitve-imagetool.jar -p vm_cfg [path/]jrockitve.bin

Note:

For information about the syntax conventions, see Documentation Conventions for Command-Line Syntax.

Arguments

Argument | Description
--- | ---
`vm_cfg` | Path and name of the configuration file corresponding to the virtual machine file system that you want to patch
`path` | The path of the directory that contains the new release of the `jrockitve.bin` file

Example

    java -jar jrockitve-imagetool.jar -p app/vm.cfg /patches/v2/jrockitve.bin

This command replaces the Oracle JRockit Virtual Edition binary within the virtual machine with the `jrockitve.bin` file that exists in the `/patches/v2` directory on the local file system.

If the patching fails for any reason (for example, due to insufficient disk space), the virtual machine image is reverted to its state before the patching was attempted, and an error message is displayed.

After running the command, you can check whether the command was successful by using the -v (--version) option to view the release of the new Oracle JRockit Virtual Edition binary.

For information about the limitations of the `-p` option, see Appendix D, "Known Issues."