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

# --force

You can include the `--force` option with other Image Tool options such as `-a`, `-c`, and `-d`, to override warnings that occur while executing those options.

For example, when you use the `-d` option to disassemble a virtual machine image, if the specified output directory is not empty, the command exits with a warning message. You can force the Image Tool to write to the nonempty directory by including `--force`.

Syntax

    java -jar jrockitve-imagetool.jar option --force

You can include `--force` either before or after the options it accompanies.

Note:

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

Arguments

Argument | Description
--- | ---
option | The Image Tool option for which you want to override warnings

Example

When creating (assembling) a virtual machine image, if you specify a nonempty directory (say, `app`) as the output directory, the Image Tool exits with the following message:

    Assembling the image ...
    error: Cannot overwrite directory "app".

To force the Image Tool to put a virtual machine image in the nonempty directory, include `--force` with the `-a` option, as follows:

    java -jar jrockitve-imagetool.jar -a myconfig.xml app --force

or

    java -jar jrockitve-imagetool.jar --force -a myconfig.xml app