Running Java Sources in a Specific Locale
Once you have set all your locales, internationalized the source code, and
built your application, you can run a version of the application for a specific
locale. You should create a new execution type that is configured to execute
the program in the desired locale.
To run a locale-specific application:
- Choose Tools
Options
from the main window.
- Expand Debugging and Executing
Execution Types.
- Right-click the Execution Types node and choose New
External
Executor. You can create a locale-specific execution based on any existing
execution type except the internal executor.
- Enter a name for the new execution type.
- Select the execution type, click External Process, and click the ellipsis
(...) button.
- In the Arguments field, enter the following switches and click OK:
- -Duser.encoding=encoding (for example, ASCII)
- -Duser.locale=language code and country code (for example,
en_US)
- Select the desired Java sources in the Explorer. In the Properties window,
click the Execution tab and set the Executor property to the new execution
type.
- Run your application.
Legal Notices