Running Java Sources in a Specific Locale
See Also
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 Execution. You can create a locale-specific execution based on any existing
execution type except Internal Execution.
- Enter a name for the new execution type.
- Select the execution type and click the ellipsis (...) button for External
Process.
- 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)
- Expand the Editing node and select Java Sources.
- Set the Default Executor property to the execution type you created. If
you only want to run a single file in the new locale, go to the file's property
sheet and set the Executor property to the execution type you created.
- Run your application.
Legal Notices