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

Reply
New Developer
nabsky
Posts: 1
Registered: ‎11-06-2009
My Device: Not Specified

Error: CreateProcess error=87, The parameter is incorrect

Hi Guys,

 

I need help. I created a BlackBerry project but there is an error when I build it. This is the message shown in the console when I build the project:

 

Building TouchstoneCurve at Fri Nov 06 18:16:49 CST 2009.
C:\NabskyDocs\Programs\BlackBerryJDE4.5.0\bin\rapc.exe -javacompiler="C:\Program Files\Java\jdk1.5.0_06

     \bin\javac.exe" -quiet import=..\Ksoap2\Ksoap2.jar;..\..\..\Programs\BlackBerryJDE4.5.0\lib\net_rim_api.jar

     codename=..\TouchstoneCurve\TouchstoneCurve ..\TouchstoneCurve\TouchstoneCurve.rapc

     @TouchstoneCurve_build.files
I/O Error: Cannot run program "C:\Program": CreateProcess error=87, The parameter is incorrect
Project TouchstoneCurve built.

I have been working on this for 2 days now and I'm out of ideas already. Can you please help me.

I am using BlackBerry JDE 4.5.0 and java 1.5 and eclipse ide from BlackBerry_JDE_Plugin_1.0.0.22 installer.

 

Thanks,

Nabs

Developer
ssaidwho
Posts: 17
Registered: ‎12-31-2009
My Device: Not Specified

Re: Error: CreateProcess error=87, The parameter is incorrect

This is probably a little different, but I was getting:

 

Cannot run program ""

 

and then the

 

CreateProcess error=87, The parameter is incorrect

 

In my case, the problem was that in project->properties->Java Build Path, under "Libraries" tab, I had gotten to the jar through "Add External Jar", so my project wasn't missing any class dependencies, but eclipse couldn't find the rapc compiler.  So instead, I removed the jar fromt he config, then clicked "Add Library", chose "JRE System Library", then chose the Blackberry JRE, which should be there as long as the component pack is installed in eclipse.

New Developer
phanikoka
Posts: 6
Registered: ‎11-26-2009
My Device: Not Specified

Re: Error: CreateProcess error=87, The parameter is incorrect

Hi,

Same case with me, wasted 1.5 days debugging this problem.

 

My environment:

 

 MS Windows XP, Professional, version 2002, Service Pack 3, JDK 1.6, JDE4.7

 

(Ofcourse I tried with JDK1.5, JDE4.6 as well but no luck)

 

User Environment variable

path : <%Java Installation Directory%>/bin;

 

Please find my problem below.

(JDE is able to build sample projects)

 

I have a work space .jdw which contains arround 15 projects (.jdp). The JDE is able to build 13 project and when building 14'th project (.jdp) it is throwing the below error.

 

 

I/O Error: Cannot run program "javac" CreatProcess error=87, The parameter is incorrect.

 

Solution: (Please note this is case specific)

 

Reset all your environment variable again and restart the system (  Don't ask me why.. )

 

Also I need to set the path in System environment variable: 

PATH = %path%; <%Java Installation Directory%>/bin;

 

Hope this helps some one who land up in same problem and breaking their heads

 

 

 

 

 

Developer
DAquilina
Posts: 587
Registered: ‎01-19-2010
My Device: BOLD 9700 OS5.0.0.x on Rogers Canada
My Carrier: Rogers

Re: Error: CreateProcess error=87, The parameter is incorrect

This is originating from the filepath:

 

C:\Program%SPACE%Files\...

 

The compiler will see "C:\Program" as the entire command. Using the command line, the simple solution is to merely insert quotes:

 

"C:\Program Files\..."

 

"Program Files" != Program Files

 

The easier way is to make use of the tab functionality in cmd.

 

C:\Pro%TAB% --> C:\"Program Files"

 

The quotes are inserted automatically. If you're using the URL programmatically and having it read in DOS form, I'm not sure how to skirt the issue.

 

Hope this helps,

~Dom

----------------------------------------------------------------------------
chown -R us ./base
~J!NX
New Contributor
ctemkar
Posts: 4
Registered: ‎05-09-2011
My Device: Curve 9300

Re: Error: CreateProcess error=87, The parameter is incorrect

I get the same erorr.

 

I have about 400+ javascript files in a folder. When I reduce this to 10 it does not give me that error.

 

I have followed the Blackberry convention ie. the files do not contain any special characters like space, _, -, etc. They are named bbs1.js, bbs2.js and so on.

 

This is the verbose output of bbwp.

 

 

E:\bb>bbwp d:bbjs.zip /v
[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating application archive
[INFO]                  Parsing config.xml
[INFO]                  Validating config.xml
[INFO]                  Validating application version
[INFO]                  Validating the <rim:loadingScreen> element
[INFO]                  Validating the <name> element
[INFO]                  Validating the <author> element
[WARNING]               Failed to find the <author> element
[INFO]                  Populating application source
[INFO]                  Compiling BlackBerry WebWorks application
java.io.IOException: Cannot run program ""E:\bb\bin\rapc.exe"" (in directory "f:
\tmp\widgetGen.11059744141304996590361.tmp"): CreateProcess error=87, The parame
ter is incorrect
[ERROR]                 RAPC exception occurred

 

 

 

Again, if I reduce the number of files, ti works. Is there a limit to the number of files? The app compiles and works for Android, Symbian, WebOS, etc.

 

Contributor
ptterb
Posts: 10
Registered: ‎05-31-2011
My Device: Playbook

Re: Error: CreateProcess error=87, The parameter is incorrect

Did you ever solve this issue? I am having the same with a large amount of files. Any help is appreciated!

New Contributor
ctemkar
Posts: 4
Registered: ‎05-09-2011
My Device: Curve 9300

Re: Error: CreateProcess error=87, The parameter is incorrect

I solved it by reducing the number of files by combing a group of files into 1 file whereby I reduced the number of files in the entire app. e.g. in my app Bus Routes beginning with 1 like 1, 1 L, 10, 121, etc. were all combined into one file as with 1 as part of the name, Then the program picks up the right part from the file at run time. 

I have still not got a clear answer as to the number of files allowed in a BB app.

All said and done, the best platform to develop seems to Android. Unfortunately, developers have to support soon to be legacy platforms like Blackberry.

I am surprised that Blackberry is not doing anything to strengthen its Web platform because that is its only chance for survival. I doubt that any developer is going to start any new project based on native BB development.

New Contributor
pratikgoyal
Posts: 3
Registered: ‎08-29-2011
My Device: BB8900

Re: Error: CreateProcess error=87, The parameter is incorrect

I am getting same error with larger amount of files.

 

I am using RAPC command to compile code using ANT scripts when the file count is around 300 we are able to compile it successfully but when the count increases to 600 it ends up with following error:

 

Cannot run program "javac": CreateProcess error=87, The parameter is incorrect

 

Does anyone know the solution??

Developer
krishnanmurari
Posts: 80
Registered: ‎06-06-2011
My Device: bold 9000

Re: Error: CreateProcess error=87, The parameter is incorrect

I had similar kind of a issue earlier.So one of my friends asked me to install latest java JDKversion 1.6.

 

When i instaled JDK1.6 there was no more error.

 

I heard this error happens only when trying to run in Windows Vista or Seven.

 

So if it has worked do let me know.

 

Thanks

Krishnan.

New Contributor
pratikgoyal
Posts: 3
Registered: ‎08-29-2011
My Device: BB8900

Re: Error: CreateProcess error=87, The parameter is incorrect

Hi Krishnan,

 

Thanks for replay

 

I have JDK1.6.0_03 installed and also i have tried on windows XP but these doesn't solve my problem.

 

Thanks,

Pratik