two tips about BlackBerry
来源:互联网 发布:南方数据传输软件 编辑:程序博客网 时间:2024/05/22 06:28
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.
- two tips about BlackBerry
- some tips about python Two
- tips about C
- Java Tips -- About Exception
- Java Tips -- About "equals"
- Some Tips about Interbase
- some tips about jsp
- some tips about jdbc
- Tips about Regular Expression
- Some tips about layout
- About GNIT some tips
- Some Tips About C++
- Tips about Troubleshooting RAC
- some tips about python
- Lesson two:About Insects
- Two Router configuration Tips
- tips about model verbs (ZT)
- 10tips about manage yourself
- Linker Script 链接器脚本(2)
- 戒游戏一个月
- 利用mediaplayer打造自己的mp3播放器
- 提交窗体后滚动条位置保持不变
- 实现文本自动分类的基础----Term频率计算方法
- two tips about BlackBerry
- [C#]解决读写包含汉字的txt文件时乱码的问题
- 励志铭言
- 高级程序员与初级程序员的区别是什么?
- 界面设计测试规范
- 不要熬夜,珍惜生命,保证睡眠规律
- javascript小技巧
- ASP中使用事务处理
- 可以弹出小文本框作为注释的TextPopup