net_rim_json_org未找到 [英] net_rim_json_org not found

查看:76
本文介绍了net_rim_json_org未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创造了J2ME一个应用程序,我已经在应用程序中使用JSON解析。我可以成功地建立它。

I have created one application in j2me, I have used json parsing in that application. I can build it SUCCESSFULLY.


Parsing import: C:\Program Files\Research In Motion\BlackBerry JDE 6.0.0/lib/net_rim_api.jar(net_rim_json_org.cod)

BUILD SUCCESSFUL (total time: 1 minute 3 seconds)

但是,当进口黑莓9000 5.0版应用程序,并试图打开它,它显示

But when imported application on blackberry 9000 v5.0, and trying to open it it showing

net_rim_json_org not found

我的问题是,它显示进口的net_rim_api.jar(net_rim_json_org.cod),但是当我在设备上尝试它的示值误差 - 为什么会这样

My question is, it's showing that net_rim_api.jar (net_rim_json_org.cod) imported but when I am trying on device its showing error - why is this happening?

推荐答案

我也面临这个问题,并设法解决,如下所述一样。

I also faced this problem and have managed to solve like as described below.

包org.json.me 是内置在JDE 6.0.0,但不是在JDE 5.0.0或以下。
所以,你需要自己添加该包。
您可以从 github上

如果你想要写同一code对于 JDE 6 JDE 5 并就双方JDE 6和JDE 5应用程序的工作,那么你可以在包重命名为类似的 org.json.whatever ....并在code,无论你需要使用<强> org.json.me.JSONArray org.json.me.JSONObject ....你只是使用 org.json.whatever.JSONArray org.json .whatever.JSONObject 等,因此,你可以进行独立的JSON解析您的code JDE版本。

If you want to write the same code for both JDE 6 and JDE 5 and make your application work on both JDE 6 and JDE 5, then you can rename that package to something like org.json.whatever .... and in your code wherever you need to use org.json.me.JSONArray , org.json.me.JSONObject .... you just use org.json.whatever.JSONArray, org.json.whatever.JSONObject etc. Thus you can make your code JDE-version independent for JSON parsing.

更多关于在SO问题 JSON解析器为黑莓OS 5

这篇关于net_rim_json_org未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆