two tips about BlackBerry

2008-02-23 09:31:04来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

Although I have never used the BlackBerry device. I am still required to developing the J2ME application on that kind of device. It is hard to begin, you know, you must...look up the Website, download the simulator(a strange simulator),convert your J2ME application into the format that can run on that device and so on.
As I have finished the task, there is two tips I'd like to record here.
First, how to convert your J2ME application into the suitable format. When we get our J2ME application, we have got two files: XXXX.jar,XXXX.jad. It is hard to use JDE to import a whole Java project -- the only way is to set up a new project and import the file one by one. So we can use the command line to convert our compiled Java application into the suitable format, with the name as ".cod" to run in the BlackBerry no matter in simulator or in a real device. to use the console command you still need to download the JDE and install it. then locate yourself to the folder where you install the JDE,we suppose it as "<JDE_HOME>".Then open the path "<JDE_HOME>/bin". copy your XXXX.jad and XXXX.jar files here. New a text file and rename it as "convert.bat". Edit this file adding the line:"rapc import="<JDE_HOME>\lib\net_rim_api.jar" codename=XXXX -midlet jad=XXXX.jad XXXX.jar" and then run it. You can get the files listed below: XXXX.jad,XXXX.jar,XXXX.debug,XXXX.cso,XXXX.cod. Copy these five files to the folder "<JDE_HOME>/simulator". And run your simulator. you can see the icon of the application in the screen meaning you can run your own Java application.
Second, how to use the network connection through the simulator. This problem has puzzled me much yesterday. And It is hard to find the answer form internet or may it is too eazy to answer. In fact it is very eazy. Not only to run the simulator you also need to run the "MDS simulator" to connect the network. it is contained in the start menu and is easy to do with it.

上一篇: Springframwork中集成Velocity的中文解决方案
下一篇: Struts Spring Hibernate 的示例(一)

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:osworkflow 小培训(1)

下一篇:在Hibernate中实现复杂的数据映射