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
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
Accepted Solution

I/O Error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210 .tmp\sampleapp (The system cannot find the file specified) [ERROR] RAPC exception occurred

[ Edited ]

C:\Program Files\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5>bbwp
C:\apps\sampleapp.zip -o C:\apps\Output2
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating application archive
[INFO] Parsing config.xml
[WARNING] Failed to find a <feature> element
[INFO] Populating application source
[INFO] Compiling BlackBerry WebWorks application
I/O Error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210
.tmp\sampleapp (The system cannot find the file specified)
[ERROR] RAPC exception occurred

 

 

 

How to fix this issue   

BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: I/O Error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210 .tmp\sampleapp (The system cannot find the file specified) [ERROR] RAPC exception occurred

Can you please confirm that you have JDK6 installed and that it is 32-bit?

Also, can you confirm whether you have any subfolder named 'src' in your project / ZIP folder?

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: I/O Error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210 .tmp\sampleapp (The system cannot find the file specified) [ERROR] RAPC exception occurred

java version

 

 

 

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)

 

 

and            In my zip file of application I have the follwoing folders

 

images

 

 

js

 

realtime-notifications

 

s40-theme

 

config.xml

 

 

index.html

 

 

4 PNG images

 

 

 

The folder realtime-nitifications        consist of   folders  "examples" and "src"    and ReadMe .md file same as   the

 

original  "pusher-html5-realtime-push-notifications-c61b0e1" folder from github

 

 

 

 

Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: I/O Error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210 .tmp\sampleapp (The system cannot find the file specified) [ERROR] RAPC exception occurred

waiting for your quick reply

BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: I/O Error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210 .tmp\sampleapp (The system cannot find the file specified) [ERROR] RAPC exception occurred

The tools are not compatible with JDK7. You will need to install JDK6 and it must be the 32-bit version.

 

If you have multiple versions of the JDK, you can modify bbwp.properties in the bin subfolder of your WebWorks SDK to include the following:

<java>C:\Program Files (x86)\Java\jdk1.6.0_31</java>

 


You would update the JDK version to match your own, but note that it is referencing Program Files (x86); the 32-bit installations path. This way you can have multiple JDKs if you require, but the bbwp command should reference the appropriate JDK.

 

In short, it must be JDK6 and it must be 32-bit.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: I/O Error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210 .tmp\sampleapp (The system cannot find the file specified) [ERROR] RAPC exception occurred

Regarding the JDK, please see this thread for a bit more detail that I've come across today as well:

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/BlackBerry-WebWorks-SDK-2-3-1-5-...


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: I/O Error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210 .tmp\sampleapp (The system cannot find the file specified) [ERROR] RAPC exception occurred

Thank You Orso Now my problem  got fixed after  making the changes as said by you.

 

 

 

Now Iam able to build and package and sign the application too.