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
Regular Contributor
workingHard
Posts: 54
Registered: ‎04-24-2010
My Device: 8900
My Carrier: simulator
Accepted Solution

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

Hi,

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"
    destdir="out"
    output="TestBuild"
    quiet="false">
   
    <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">
    </jdp>
   
    <src>
     <fileset dir=".">
      <include name="src/**/*.java" />
      <include name="res/**/*.*" />
     </fileset>
    </src>
   </rapc>
   <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"/>    
   </fileset>
    </copy>  
  </target>

 

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!!

 

Please use plain text.
Developer
Developer
gtj
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.

 

Please use plain text.
Regular Contributor
workingHard
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.

Thanks!

Please use plain text.