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(
method calls. For example, if you want to set a variable
called besUrl, make the following method call:<property
name>
)
besUrl=System.getProperty("besurl")
.- On theRunmenu, clickRun Configurations.
- In the left pane, select the class that you created (for example, HelloWorld).
- On theArgumentstab, in theVM argumentsfield, type the following argument for the FQDN of theBlackBerry UEM:-Dbesurl=". For example:<server_name>"-Dbesurl="bes_server1.test.rim.net"
- On the next line, type the following argument for the user name of theBlackBerry UEMadministrator account:-Dusername=". For example:<user_name>"-Dusername="admin"
- On the next line, type the following argument for the password of the administrator account:-Dpassword=". For example:<password>"-Dpassword="password"
- On the next line, type the following argument for the location and password of the keystore that you created:-Djavax.net.ssl.trustStore=". For example:<keystore_path>" -Djavax.net.ssl.trustStorePassword="<keystore_password>"-Djavax.net.ssl.trustStore="C:\Program Files\Java\jre8\bin\bes.keystore" -Djavax.net.ssl.trustStorePassword="password"
- ClickApply.
- ClickClose.