Setting System and Path Variables

Set the Java system variable and add Java to the system path.

  1. Set the JAVA_HOME system variable:
    1. Right-click the computer icon for the system running the BlackBerry Java Plug-in, and select Properties.
    2. In System Properties, select Advanced, then click Environment Variables.
    3. In System variables, select JAVA_HOME and click Edit.
    4. In the Edit System Variable dialog, add a JDK directory path.

      Check the JDK system requirements for the BlackBerry environment you are using: http://us.blackberry.com/developers/javaappdev/.

      If you have Sybase installed, you can use the existing JDK to set the JAVA_HOME variable: JAVA_HOME=C:\Sybase\UnwiredPlatform\JDK1.6.0_31.

      Note: For the Sybase 64-bit environment, you would still use the 32-bit JDK.
  2. Add %JAVA_HOME%\bin to the system path:
    1. In System variables, select Path and click Edit.
    2. In the Edit System Variable dialog, add a JDK directory path.

      If you have Sybase installed, you can use the existing JDK to set the variable: C:\Sybase\UnwiredPlatform\JDK1.6.0_31\bin.

  3. Restart the system for the environment variables to take effect.