Skip to main content
Accessibility Resource Center Skip to main content
Have a phone you love? Get up to $500 when you bring your phone.
end of navigation menu
cancel
Showing results for 
Search instead for 
Did you mean: 
***Announcement: We’re excited to inform you that we will be merging the Fios and Wireless Communities to a unified Verizon Community with a new look and feel throughout. If you are interested in what specifically has changed, please see the New Revamped Community article under the Featured Topics.***
How do i package the nbi.jar into my cod file for vzw blackberry 9630 build using ant script
radhakrishna
Member

Hi,

 

I am working on vzw location api. we have an application already on blackberry.

my requirement is that, I have to add the nbi.jar to my build which is giving errors.

 

Error message: " This application requires the following module, which is not installed:nbi "

 

I have preverified the nbi.jar before running the rapc from JDE bin directory

preverify.exe -classpath "C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar" "nbi.jar"

 

My ant script:

 

    <var name="device.property.build.boothclasspath" value="${build-single.basedir}/lib/nbi.jar;${jde.home}/lib/net_rim_api.jar" />

<wtkpackage profile="MIDP-2.0" config="CLDC-1.1"
                    jarfile="${target.device.dist.dir}/${app.dist.name}.jar" jadfile="${target.device.dist.dir}/tmp/${app.dist.name}.jad"
                    bootclasspath="${device.property.build.boothclasspath}" obfuscate="${device.dist.obfuscate}"
                    preverify="true" cldc="true" libclasspath="${target.device.res.dir}" verbose="true">
                    <fileset dir="${target.device.classes.dir}"/>
                </wtkpackage>

 

    <var name="vzw.nbi.jar" value="${build-single.basedir}/lib/nbi.jar" />

    <exec executable="${jde.tools.home}/rapc.exe" dir="${target.device.dist.dir}">
                    <arg value="import=${bb.api.jar};${vzw.nbi.jar}" />
                    <arg value="-quiet" />
                    <arg value="codename=${target.device.dist.dir}/tmp/${app.dist.name}" />
                    <arg value="-midlet" />
                    <arg value="jad=${target.device.dist.dir}/tmp/${app.dist.name}.jad" />
                    <arg value="@source.files" />                    
                </exec>

 

My jad entries also shows the nbi module but could not load, it says " nbi " module not found.

 

RIM-COD-Module-Dependencies: net_rim_cldc,nbi,net_rim_os,net_rim_bbapi_invoke,net_rim_locationapi.

 

How do i package the nbi into my cod file?

 

Any help would be appreciated.

 

 

 

 

 

 

Labels (1)
0 Likes
Re: How do i package the nbi.jar into my cod file for vzw blackberry 9630 build using ant script
LCromwell
Sr. Member
What I would do is a search for adding COD for bedside mode to a BB phone. I had to do this after an update but I do not remember what I did. You will need to download the BB SAK  known as the swiss army knife. It allows you to add cod to an OS. I think it was over in BB Leaks or something like that put it in Google search off your comp. and I'm sure you will find it.
radhakrishna wrote:

Hi,

 

I am working on vzw location api. we have an application already on blackberry.

my requirement is that, I have to add the nbi.jar to my build which is giving errors.

 

Error message: " This application requires the following module, which is not installed:nbi "

 

I have preverified the nbi.jar before running the rapc from JDE bin directory

preverify.exe -classpath "C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar" "nbi.jar"

 

My ant script:

 

    <var name="device.property.build.boothclasspath" value="${build-single.basedir}/lib/nbi.jar;${jde.home}/lib/net_rim_api.jar" />

<wtkpackage profile="MIDP-2.0" config="CLDC-1.1"
                    jarfile="${target.device.dist.dir}/${app.dist.name}.jar" jadfile="${target.device.dist.dir}/tmp/${app.dist.name}.jad"
                    bootclasspath="${device.property.build.boothclasspath}" obfuscate="${device.dist.obfuscate}"
                    preverify="true" cldc="true" libclasspath="${target.device.res.dir}" verbose="true">
                    <fileset dir="${target.device.classes.dir}"/>
                </wtkpackage>

 

    <var name="vzw.nbi.jar" value="${build-single.basedir}/lib/nbi.jar" />

    <exec executable="${jde.tools.home}/rapc.exe" dir="${target.device.dist.dir}">
                    <arg value="import=${bb.api.jar};${vzw.nbi.jar}" />
                    <arg value="-quiet" />
                    <arg value="codename=${target.device.dist.dir}/tmp/${app.dist.name}" />
                    <arg value="-midlet" />
                    <arg value="jad=${target.device.dist.dir}/tmp/${app.dist.name}.jad" />
                    <arg value="@source.files" />                    
                </exec>

 

My jad entries also shows the nbi module but could not load, it says " nbi " module not found.

 

RIM-COD-Module-Dependencies: net_rim_cldc,nbi,net_rim_os,net_rim_bbapi_invoke,net_rim_locationapi.

 

How do i package the nbi into my cod file?

 

Any help would be appreciated.

 

 

 

 

 

 


 

0 Likes
Re: How do i package the nbi.jar into my cod file for vzw blackberry 9630 build using ant script
SuzyQ
Sr. Leader
Sr. Leader
Hi radhakrishna,
This is a customer to customer peer support,and I don't think very many of us have the technical background or access to the information you need.

RIM would be a more likely place to look for your solution, I would think. Have you contacted technical support there? Or tried their support forums?
0 Likes