Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application not getting deployed on Blackberry simulator

I am tried deploying .cod,.alx.jar files on blackberry simulator 8100;the application is not getting deployed on phone.I am using Blackberry plugin for Eclipse. How can I solve this issue?

Please help


Update

Hi, Thanks for your reply. I am trying to run the application the way you suggested.

Do I need to setup new run configuration every time I run any project?

What should be default value for build configuration ? [Debug,Private,or Release]

like image 714
iOSDev Avatar asked Apr 25 '09 07:04

iOSDev


2 Answers

Copying the .cod files into the simulator's directory (where all the other .cod files are) and restarting the simulator will work.

Probably though you want to automatically deploy from Eclipse. If this isn't working for you, there are a couple of things to check:

Check that the project has been activated for BlackBerry - from the right-click menu for the project, make sure that Activate For BlackBerry is checked.

If that's already checked (as it is by default when you create a new BB project), then sometimes explicitly building the project will do the trick: From the Project menu, choose Build Active BlackBerry Simulation

EDIT: In response to some comments below I thought of something else. The configuration you choose may have something to do with your problems (BlackBerry -> Build Configurations). The configuration in the JDE Plug-in doesn't affect the code generated, but it does affect which projects are activated for BlackBerry. If you switch configurations, your project may become un-activated.
Since it doesn't affect the code, I usually just pick one configuration and stick with it throughout debugging and release.

like image 97
Anthony Rizk Avatar answered Nov 02 '22 16:11

Anthony Rizk


You might be missing 'jar' in your PATH. If so, the eclipse BB plugin silently fails and your application won't be pushed to your simulator plugin directory. To see this failure within eclipse, choose 'Project > Build Active BlackBerry Simulation'.

If you don't have jar in your path, then you will see:

I/O Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified rapc executed for the project

So, if your JDK is here:

C:\Sun\SDK\jdk\bin

Then append it to your system environment's PATH variable, then re-run 'Build Active BlackBerry Simulation' and you should see:

rapc executed for the project [YOUR PROJECT]
like image 6
clafonta Avatar answered Nov 02 '22 14:11

clafonta