Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

I/O Error: CreateProcess

by BlackBerry Development Advisor ‎02-17-2010 01:13 PM - edited ‎02-18-2010 09:57 AM (6,917 Views)

Summary


This article applies to the following:


  • BlackBerry® Java® Development Environment (BlackBerryJDE)


Problem


When attempting to compile an application using BlackBerry JDE 3.6 or later, you receive the following error in the debugger window:

I/O Error: CreateProcess:

...

Error while building project


Cause 1


The Java® software development kit (Java SDK/JDK) is not installed on the computer, or an incorrect version of the Java SDK is installed on the computer.


Resolution 1


Verify that a supported version of the Java SDK is installed by completing one of the following tasks:


  • Review the programs listed in Add or Remove Programs to determine the installed version of the Java SDK
  • Search Windows® Explorer for the Java installation directory (for example, C:\Program Files\Java\jdk1.6.0_12)

If an incorrect version of the Java SDK is installed, remove it and then install the supported Java SDK version for the BlackBerry JDE version installed on the computer. For information on supported versions of Java for different BlackBerry JDE versions, see this article. For installation instructions, see the Java web site.


When the installation is complete, verify that the Java directory has been created and the environment variable has been set correctly. See Resolution 2 for instructions on how to check the environment variable.


Cause 2


The environment variable for the Java SDK is not set correctly.


Resolution 2


Check the environment variable by completing the following steps:

  1. On the desktop, right-click My Computer and then select Properties.
  2. On the Advanced tab, click the Environment Variables button and then edit the PATH system variable.
  3. Verify that the C:\Program Files\Java\jdk<version>\bin directory appears first in the PATH system variable as in the following example:


    C:\Program Files\Java\jdk<version>\bin;C:\Perl\bin\;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;%SystemRoot%\system32; %SystemRoot%

     

  4. If multiple versions of Java are installed, move the Java SDK path to the beginning of the list, as in the preceding example.
  5. If the C:\Program Files\Java\jdk<version>\bin directory does not exist, it is possible that the Java SDK version is not installed on the computer. See Resolution 1 for instructions on installing the correct version.

Note: Different versions of the BlackBerry JDE require different versions of the Java SDK; to configure multiple versions of the BlackBerry JDE installed on the same computer to use different versions of the Java SDK, see this article.

Contributors