views:

3798

answers:

14

Hi all, 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

+6  A: 

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.

Anthony Rizk
Thanks Anthony for your solution.I marked "Activate for Blackberry". It was not already checked.Then I tried running the application,still the application didnt run.Then just for check, I tried changing application type to Midlet and saved the settings.Exited the wizard,Again changed to CLDC app. and built the app.I dont know how, but it worked.Application ran successfully on simulator.It just worked.I didnt find what actually would have happened.:)
imMobile
In response to your EDIT, I had set BlackBerry -> Build Configurations... -> Debug, in the hope that I would get more debug output from the simluation. As you say, this seems to stop my project building. To 'fix' that, pick BlackBerry -> Build Configurations... -> Edit..., then makes sure all your projects are selected. After another rebuild and launching the simulator my application was updated. I wonder how long this will continue working...
Dan J
A: 

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]

imMobile
It doesn't matter, so long as when you choose Edit... (at the same level as Debug, Private, Release) your BlackBerry project is one of the ones selected to build.
Dan J
A: 

Sorry to bother again. Application disappeared once again from simulator... Please help

imMobile
+1  A: 

Check if your simulator is set up to clean the file system / configuration before launching the simulator. Simulators can be set up like this. If you deactivate it, the application should not disappear.

kozen
A: 

If I clean the blackberry simulator files, application disappears. What can be done?

Can No particular procedure can be followed to get the application on device again?

imMobile
A: 

This is being a recurring problem... After many many days again I am facing same problem and no above solutions are working...

Can anyone please help ?

imMobile
Check for an error file (possibly .err) in your workspace that may contain problems encountered while generating the .cod. And use comments when possible, not new 'answers' to your original question.
Joe Liversedge
+4  A: 

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]
clafonta
+2  A: 

Here are a couple of ideas:

1) If you have any build errors then the application won't deploy to the Simulator. The Eclipse compiler (that underlines compile errors in red) is different to the "rapc" one that creates the binary for the Simulator. I have heard of situations where the Eclipse build seems to work, but the rapc compile fails - check the Console for the detailed rapc output (this might not look like a normal Eclipse build error).

2) In the Eclipse menu, open BlackBerry -> Configure BlackBerry Workspace.

Under BlackBerry JDE choose Code Signing and make sure the three RIM checkboxes are selected. I had compile errors when these weren't selected.

Under BlackBerry JDE choose Installed Components. Choose to use the Component Package 4.7.0 as I have heard of problems with the 4.5.0 Simulator.

You should delete all these extra answers you posted, or you might get downvotes - they should be comments instead of answers.

Dan J
A: 

I know this is old, but you have to do the "generate ALX" option from right clicking the project menu as well or it won't deploy, at least it doesn't for me.

sethxian
A: 

I ran into the same problem again and none of answers posted here worked for me.

I played around and finally made it work. The problem was that the output file name contained a hyphen ('-'). Changing this name in the Build section of BlackBerry app descriptor did the trick.

I mean, how stupid a developer must be to slip that kind of bug. No error reported and why reject the names with hyphens in the first place? Give me back my two hours RIM "developers"!

pajton
I didn't see this bug. I am using the latest version of the BlackBerry plug-in for Eclipse (as of the time of writing this comment), and I do have a project whose output file name contains hyphens. It's running correctly; I don't see any problems caused by that.
Hosam Aly
A: 

hi......... i'm new to blackberry. Trying out login module. I'm to able to add controls to screen n move first screen to second and second to third. But don't know how to go back to first page as the class of first page doesn't extend MainScreen. I'm using eclipse and jde 4.5.

sim
If you want to ask a question, don't put it in an answerbut start a new thread for it.The "Ask Question" button ins in the top right of this page.More people would see your question and try to answer that way.Best add some example code of what you are trying to do and where exactly you have problems.
sth
A: 

I had the same problem. The reason was using 'ü' character in the title.

İbrahim ULUDAĞ
A: 

I have been facing this problem today, but with a MIDlet project. It turned out to be that I forgot to specify the "Name of main MIDlet class" in the BlackBerry Application Descriptor (BlackBerry_App_Descriptor.xml). Once I specified it the application appeared on the simulator correctly.

Hosam Aly
A: 

For future readers, there is another possibility for this issue. Check your workbench project directory (folder) for a ProjectName.err file. This may provide a clue as to why your build is silently failing and thus not deploying. In my case, it was an "Error!907", a new icon I added to my project was too big. There was absolutely no other indications in Eclipse 3.4.1 that there was a problem in my build.

Jim Knot