简体   繁体   English

关于blackberry java Eclipse插件的编译问题

[英]Compilation issues on blackberry java plug-in for Eclipse

I'm writing an application for blackberry OS 5 with the Blackberry Java Plug-in 1.1.1 on Eclipse 3.5 and Windows 7 x64.我正在使用 Blackberry Java 插件 1.1.1 在 Eclipse 3.5 和 Windows 7 x64 上编写 blackberry OS 5 的应用程序。 My application consists of five projects 2 libs and 3 applications.我的应用程序包含五个项目 2 个库和 3 个应用程序。 When i compile the libraries everything goes well, but when i try to package any of the three apps the following happens:当我编译库时一切顺利,但是当我尝试 package 三个应用程序中的任何一个时,会发生以下情况:

1 - First time the resulting cod files are useless. 1 - 第一次生成的 cod 文件无用。 When i install any of these cods on the simulator or a device nothing happens.当我在模拟器或设备上安装任何这些代码时,没有任何反应。

2 - At this moment i realized that if i make a change on one of the three packages causing the recompilation to deliver new cods, the size of the new cods are bigger, they do work fine. 2 - 此时我意识到,如果我对三个包之一进行更改导致重新编译以提供新的 cods,新 cod 的大小更大,它们可以正常工作。 If i repeat this i go back to step one, so i have to compile the three projects twice every time.如果我重复这个 i go 回到第一步,那么我每次都必须编译这三个项目两次。

This situation is very odd and time consuming.这种情况非常奇怪且耗时。 Any idea on what could be the problem?关于可能是什么问题的任何想法? Thanks in advance and I'm sorry for my English.在此先感谢,我很抱歉我的英语。

Firstly, I would suggest upgrading to the latest versions of Eclipse (currently Indigo 3.7) and the BlackBerry plugin (currently 1.5), there have been a lot of bug fixes over the past year which may solve your issues.首先,我建议升级到最新版本的 Eclipse(目前为 Indigo 3.7)和 BlackBerry 插件(目前为 1.5),过去一年修复了很多错误,可能会解决您的问题。

Secondly, have you considered including your library source code directly into your app by adding them to the project build path?其次,您是否考虑过将您的库源代码添加到项目构建路径中,从而将它们直接包含到您的应用程序中? I have found this to be a much more reliable way of including library code into a BlackBerry project, and it saves messing around with multiple library cods.我发现这是将库代码包含到 BlackBerry 项目中的一种更可靠的方法,并且它可以避免混淆多个库代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM