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

Web and WebWorks Development

Reply
New Developer
Posts: 5
Registered: ‎01-21-2010
My Device: Storm 9530
My Carrier: AT&T

Widget Compiling Error! Help!

I am trying to compile my widget using beta2.  I get as far as "Start compiling and building..." and then I get the following error:

 

java.io.IOException: Cannot run program ""C:\Program" (in directory "C:\Users\MYUSWER~1\AppData\Local\Temp\widgetGen.10819749264114361588.tmp"): CreateProcess

 error=206, The filename or extension is too long

[ERROR]            Error happened when running rapc.exe!

 

Any ideas?

Developer
Posts: 36
Registered: ‎01-20-2010
My Device: 8520
My Carrier: Orange

Re: Widget Compiling Error! Help!

[ Edited ]

did you try to login with another user and build the widget?

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget Compiling Error! Help!

It looks like the file path generated to compile the application is in a location that exceeds windows file path limitations.  Can you post the full path of the directory name you have installed the SDK into and also list the full command line text that you are passing down?

 

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 5
Registered: ‎01-21-2010
My Device: Storm 9530
My Carrier: AT&T

Re: Widget Compiling Error! Help!

I originally had the SDK installed in the default location.  I now have it installed at C:\bbw\ 

 

I am running Widget SDK Beta 3 on Windows Vista Business 32bit. 

 

The command that I am running is "bbwp web/test.zip" from the C:\bbw\ directory.

 

I'm not sure if it matters, but my web widget that I am trying to compile has 12,000 html files.  It is a reference book that uses static html instead of a database. 

 

When I have fewer files in the widget it compiles.  When I add the full 12k I got this error.

 

The SDK B3 error that I am getting now after the "Compiling widget" status update is as follows:

 

java.io.IOException: Cannot run program ""C:\bbw\bin\rapc.exe"" (in directory "C:\Users\JOSIAH~1\AppData\Local\Temp\widgetGen.2327285361270438062039.ymp"): CreateProcess error=206, The filename or extension is too long

[ERROR]                                      RAPC exception occurred

New Developer
Posts: 5
Registered: ‎01-21-2010
My Device: Storm 9530
My Carrier: AT&T

Re: Widget Compiling Error! Help!

I should also mention that the 12,000  html files are around 6mb zipped.

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget Compiling Error! Help!

The total files size may be the issue here.  A BlackBerry application has a maximum size limit of 7MB which includes all the total size of all the *.cods for the module.

 

In some cases, developers have gotten around this issue by keeping the core of the application within those limits and then download the extra content to the file system after install.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 5
Registered: ‎01-21-2010
My Device: Storm 9530
My Carrier: AT&T

Re: Widget Compiling Error! Help!

Thanks for the reply.

 

How much do I need to leave for overhead for the .cod's? or does that vary?

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget Compiling Error! Help!

That is likely going to vary based on configuration settings that you use for your widget.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter