Приложение, не развертываемое на средстве моделирования Blackberry

Вы имеете в виду «история не определена»? Вы можете получить историю из родительского компонента

5
задан Gumbo 17 March 2011 в 10:46
поделиться

7 ответов

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.

8
ответ дан 18 December 2019 в 08:31
поделиться

Проверьте, настроен ли ваш симулятор для очистки файловой системы / конфигурации перед запуском симулятора. Симуляторы могут быть настроены так. Если вы отключите его, приложение не должно исчезнуть.

1
ответ дан 18 December 2019 в 08:31
поделиться

Возможно, в вашем PATH отсутствует «jar». Если это так, плагин eclipse BB автоматически выдает ошибку, и ваше приложение не будет помещено в каталог плагинов симулятора. Чтобы увидеть этот сбой в eclipse, выберите «Проект»> «Создать активное моделирование BlackBerry».

Если на вашем пути нет jar, вы увидите:

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

Итак, если ваш JDK здесь:

C:\Sun\SDK\jdk\bin

Затем добавьте его в переменную PATH вашей системной среды, затем повторно запустите 'Build Active BlackBerry Simulation », и вы должны увидеть:

rapc executed for the project [YOUR PROJECT]
6
ответ дан 18 December 2019 в 08:31
поделиться

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.

2
ответ дан 18 December 2019 в 08:31
поделиться

Я знаю, что это устарело, но вы также должны выбрать опцию «сгенерировать ALX», щелкнув правой кнопкой мыши меню проекта, иначе он не развернется, по крайней мере, для меня .

0
ответ дан 18 December 2019 в 08:31
поделиться

Я снова столкнулся с той же проблемой, и ни один из опубликованных здесь ответов не помог мне.

Я поигрался и наконец заставил это работать. Проблема заключалась в том, что имя выходного файла содержало дефис ('-') . Изменение этого имени в разделе «Сборка» дескриптора приложения BlackBerry помогло.

Я имею в виду, насколько глупым должен быть разработчик, чтобы пропустить такую ​​ошибку. Об ошибках не сообщалось, и зачем вообще отказываться от имен с дефисами? Верните мне мои два часа RIM "разработчикам"!

0
ответ дан 18 December 2019 в 08:31
поделиться

У меня была такая же проблема. Причина заключалась в использовании символа « ü » в названии.

0
ответ дан 18 December 2019 в 08:31
поделиться
Другие вопросы по тегам:

Похожие вопросы: