JVM command-line properties and options
You can use Java™ virtual machine (JVM) properties and command-line options to set the locale and available memory for generating reports by using the Migration Toolkit for Application Binaries.
Setting the locale
To generate a report in a language other than the default locale, specify the following properties on the command line:
- -Duser.language=<locale language id>
- -Duser.country=<locale country id>
The following table lists the supported values for the user.language and user.country properties:
| Language | user.language | user.country |
|---|---|---|
| Chinese (Simplified) | zh | CN |
| Chinese (Traditional) | zh | TW |
| Czech | cs | |
| English | en | |
| French | fr | |
| German | de | |
| Hungarian | hu | |
| Italian | it | |
| Japanese | ja | |
| Korean | ko | |
| Polish | pl | |
| Portuguese (Brazillian) | pt | BR |
| Romanian | ro | |
| Russian | ru | |
| Spanish | es |
Setting the minimum and maximum memory
When you generate a report for a large number of applications, you might encounter a java.lang.OutOfMemory exception. It is recommended to generate reports for individual applications so that you can better understand what results pertain to a particular application. However, if you want to generate a combined report, you can increase the initial and maximum memory sizes that are available to the JVM by specifying the following options on the command line:
- -Xms<minimum size>
- -Xmx<maximum size>
Examples
The following example demonstrates generating a report in Simplified Chinese using the JVM properties:
java -Duser.language=zh -Duser.country=CN -jar binaryAppScanner.jar binaryInputPath
The following example demonstrates increasing the minimum and maximum memory size to two gigabytes using the JVM command-line options:
java -Xms2G -Xmx2G -jar binaryAppScanner.jar binaryInputPath --analyze