Skip Navigation

Configure the VM arguments in your project

To save data about your development environment, including information about the
BlackBerry UEM
domain and the administrator accounts that you want your applications to use, you can configure environment variables as VM arguments. VM arguments allow your application to access these variables by using
System.getProperty(
<property name>
)
method calls. For example, if you want to set a variable called besUrl, make the following method call:
besUrl=System.getProperty("besurl")
.
  1. On the
    Run
    menu, click
    Run Configurations
    .
  2. In the left pane, select the class that you created (for example, HelloWorld).
  3. On the
    Arguments
    tab, in the
    VM arguments
    field, type the following argument for the FQDN of the
    BlackBerry UEM
    :
    -Dbesurl="
    <server_name>
    "
    . For example:
    -Dbesurl="bes_server1.test.rim.net"
  4. On the next line, type the following argument for the user name of the
    BlackBerry UEM
    administrator account:
    -Dusername="
    <user_name>
    "
    . For example:
    -Dusername="admin"
  5. On the next line, type the following argument for the password of the administrator account:
    -Dpassword="
    <password>
    "
    . For example:
    -Dpassword="password"
  6. On the next line, type the following argument for the location and password of the keystore that you created:
    -Djavax.net.ssl.trustStore="
    <keystore_path>
    " -Djavax.net.ssl.trustStorePassword="
    <keystore_password>
    "
    . For example:
    -Djavax.net.ssl.trustStore="C:\Program Files\Java\jre8\bin\bes.keystore" -Djavax.net.ssl.trustStorePassword="password"
  7. Click
    Apply
    .
  8. Click
    Close
    .