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

Regular Contributor
Posts: 54
Registered: ‎04-24-2010
My Device: 8900
My Carrier: simulator
Accepted Solution

Eclipse Blackberry Plugin: 'Run as' problem with build.xml


I am using windows 7 (32-bit), Eclipse 3.5 with blackberry plugin.


I have created a very simple 'helloworld' blackberry project 'TestBuild' that uses build.xml for building it. Below is buildRIM desciption i used in build.xml 

 <target name="buildRIM" description="Builds Project">
   <rapc jdehome="${jdehome}"
    jdkhome="C:\Program Files\Java\jdk1.6.0_20"
    <jdp type="cldc"
     title="TestBuild"   vendor="abc"
     version="Version=1.0"   description="My Test Build1"
     arguments=""   systemmodule="false"
     runonstartup="false"  startuptier="7"
     ribbonposition="0" icon="../res/img/testbuild.png">
     <fileset dir=".">
      <include name="src/**/*.java" />
      <include name="res/**/*.*" />
   <copy todir="${eclipse}" overwrite="true">
   <fileset dir="out">
    <include name="*.cod" />
    <include name="*.debug" />
    <include name="*.cso" />
    <include name="*.jad"/>
    <include name="*.jar"/>
    <include name="*.rapc"/>    


By right click on build.xml, When i do 'Debug As' -> Remote Java Application, all works fine.


However when i do 'Run As' -> Blackberry Application build happens correctly and invokes the simulator but without the built application.

At end i get this error:

Packaging project TestBuild
C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin\rapc.exe -quiet codename=deliverables\Standard\5.0.0\TestBuild deliverables\Standard\5.0.0\TestBuild.rapc -sourceroot=C:\Users\Shikha\workspace\TestBuild\src;C:\Users\Shikha\workspace\TestBuild\res -import=C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25components\lib\net_rim_api.jar; C:\Users\Shikha\workspace\TestBuild\lib \bb-ant-tools.jar;C:\Users\Shikha\workspace\TestBuild\build.xml C:\Users\Shikha\workspace\TestBuild\bin

I/O Error: error in opening zip file: C:\Users\Shikha\workspace\TestBuild\build.xml
Packaging project TestBuild failed (took 1.327 seconds) 


Please help me out!!


Posts: 319
Registered: ‎07-20-2008
My Device: Not Specified

Re: Eclipse Blackberry Plugin: 'Run as' problem with build.xml

According to the error output, your build.xml file is being appended to the -import parameter which is expecting only jar/zip files.   I can't tell you why this is happening however.  Maybe some property is set incorrectly.


Regular Contributor
Posts: 54
Registered: ‎04-24-2010
My Device: 8900
My Carrier: simulator

Re: Eclipse Blackberry Plugin: 'Run as' problem with build.xml

Hey thanks for your reply. Yes, actually i had added build.xml to build path. So, even when i did not use build.xml for building application, it still existed in the build path and caused the problem.


working fine now.