Application not getting deployed on Blackberry simulator

后端 未结 10 1877
耶瑟儿~
耶瑟儿~ 2020-12-03 23:11

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 so

相关标签:
10条回答
  • 2020-12-03 23:35

    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.

    0 讨论(0)
  • 2020-12-03 23:38

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

    0 讨论(0)
  • 2020-12-03 23:40

    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.

    0 讨论(0)
  • 2020-12-03 23:43

    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.

    0 讨论(0)
  • 2020-12-03 23:46

    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.

    0 讨论(0)
  • 2020-12-03 23:48

    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]
    
    0 讨论(0)
提交回复
热议问题