net_rim_json_org not found - blackberry

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)
But when imported application on blackberry 9000 v5.0, and trying to open it it showing
net_rim_json_org not found
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.
package org.json.me is built-in in JDE 6.0.0 but not in JDE 5.0.0 or below.
So, you need to add that package yourself.
You can download the package from github.
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.
More on json parsing in the SO question "Json parser for Blackberry OS 5"

You have compiled your application with SDK 6.0 and are trying to launch it on device with SDK 5.0
SDK version == JDE version you have used.
Error you get means that device OS ver. 5.0 does not have this library, that exists in device OS ver. 6.0
Note that, if you compile your app with SDK 6.0 it will run properly on devices with OS versions 6.0 and 7.0, but not on devices with OS 5.0 and older.

In you build settings==> order and export, you are exporting that library or not. If not then please check the checkbox and your application works fine

Related

Compiling legacy code using iOS 7 SDK breaks app

I have a developed application and the code is compiled using Xcode 4.6 and executes on iPhone with IOS version 6.1.3 . That's all OK.
Now I am requested to test it on the iOs 7.0 or later version . Then I upgrade all needed stuff , including xcode, mac OS version ,etc. (I have to upgrade them because the original version of xcode complains of the failure that it can not compile and debug on ios7.0)....
When I try to build the code using the latest combined versions and run on ios7.0, the application is dysfunctional and the problems are mainly related to GUI-related.
But the application with xcode 4.6 built can normally run on IOS 7.0.3 phone. So I think it is feasible for the legacy code/SDK to run on ios 7.0.3. Currently, I don't have plan to upgrade the code to optimize for ios7.
So My question is : How can I test/debug this application on iOS 7 or later ?
Thanks alot
Daniel
If i am not getting wrong understanding from your question...And what you want is this..
You don't want to build your application using iOS 7 base sdk (You were using iOS 6 base sdk on xcode 4.6).
But you want to use latest xcode with old SDK 6.1 etc and test apps on iOS 7 Devices/Simulators
Here is solution...
You just need to copy 6.1 SDK(or older) from your old xCode(4.6) to latest xcode(5.x) sdk folder and set base sdk to 6.1 SDK(or older one) in project setting.
This will let you run your app on devices with iOS 6.x or lower as they were running before also lets you test your app on iOS 7 devices without compiling with latest iOS 7 SDK.
To achieve this..
1. click on your xcode4.6 -> show package content , go to path
/Applications/Xcode_4.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
This is where you will see older SDK you were using (6.1 etc). Now open same path for latest xcode 5.x and copy SDKs from old xCode path to new xCode path. OR Download it from Xcode preference -> Downloads.
2. Now go to project setting and set base sdk as iOS 6.x SDK
You can use Wireless AdHoc Distribution or simply build the IPA and install it through iTunes. Debugging it, however, is a bit more complicated. You will have to launch Instruments on its own and choose the already running process on the device.

IBM Worklight - Blackberry App not working in OS 6.0 or 7.1

Blackberry app working in OS 5.0 but not working in OS 6.0 or 7.1
Following steps I follow in ripple:
Selected platform webworks 2.0.0
In Build option clicked on settings and entered new SDK path.
Entered native folders path in Project Root
gave a name in Archive name
entered a path in output folder
ENtered password in password field
still getting error while packaging "CreateProcessW: The system cannot find the file specified."
So still packaging the app manually and the app is working in OS 5.0 but not in OS
I have used Worklight 5.0.6.2 and 5.0.5 to develop app and in both the case the app is working only in OS 5.0
Using:
Worklight 5.0.5/5.0.6.2
BlackBerry SDK v2.3.1.5
"BlackBerry" platform in Ripple
The reason it works in the Ripple emulator is because all that emulator does is load the web resources of the application, which essentially is just like previewing the application using Worklight Console instead.
I am guessing that the following may help (it helped me get Ripple back into working condition):
Copy the BlackBerry SDK from Program files to C:\ (also remove any spaces in the folders path)
Make sure your Java is also in C:\
Navigate to the bin\ folder of the SDK in its new location
Open the file bbwp.properties file and edit the Java path to its new location in C:\
Check if Ripple now signs your application
In addition to the above, make sure that the "platform" you've chosen is "WebWorks 2.0.0". That's the correct platform when using BlackBerry 6/7.
In the Settings window in Ripple, you need to:
point to the new SDK location from above.
The path field needs to point to the native folder of your Worklight's BlackBerry environment.
And of course you need to specify output folder location, name, signing keys password, ...
Try to package and sign again using Ripple.
I do hope of course, that you've read the Getting Started training material about BlackBerry?
Setting up your BlackBerry 6 and 7 development environment
Previewing your application on BlackBerry 6 and 7
General information when developing for BlackBerry 6 and 7

net_rim_crypto error in blackberry

I'm developing a blackberry application to encode and decode some important information. For this I'm using the net.rim.device.api.crypto.* package in my application. I'm developing in blackberry OS 7.1 simulator but my blackberry device has OS 5.0 . When I try to download the app in my device, it gives me the following error:
"This application requires the following module, which is not installed: net_rim_crypto"
Also I'm not able to use the update site and install previous blackberry Os versions as the installation fails whenever I try to install it.
So, my question is mainly: How can I make my apps backward compatible in this case? Also, I'm not able to install and run my app (mentioned above) on the device. How can I accomplish this? Please help. Thanks in advance.
Please note that BlackBerry apps are not backward compatible, that is to say an app built on OS 7.0 will not work with OS 6.0 or OS 5.0. However, an same app built on OS 5.0 will work on handsets with OS 5.0+. Considering you are developing your app in OS 7.1 simulator indicates you are using BlackBerry JRE 7 and net_rim_crypto that you implemented seem to be missing in OS 5. In order to develop apps for OS 5, please work with JRE 5.

How to port BlackBerry Application from OS 5 to OS 6

I have developed application for BlackBerry OS 5 and now I want to port it to BB OS 6
While porting app, I am facing following issue --
I have added separate org.json.me package in OS 5 which is inbuilt in OS 6
When I add BB OS 6 library instead of OS 5 in the app it gives me error
Please suggest possible solution to run same app on both platforms
You can rename the package name of your json package to com.yourcompany.json instead of leaving it as org.json.me. This is a simple solution to your problem, there might be better solutions as well.
I have got answer to my question
I used BlackBerry OS 5 library to compile my application which is running excellent in OS 6 device also

BlackBerry SDK 5.0 Issue

I developed a Hello World application using Black Berry Eclipse plug-in. When I rant it on any BlackBerry simulator of which platform version is greater than or equal to 5.0 then the Hello World application is not found listed in the default application list. However, I can run the application from Options > Application : Search (Thridparty) and switch application. How can I make my application come to the default application list on any BlackBerry simulator with platform version is 5.0 or greater.
My Hello World application is built for the JRE BlackBerry JRE 5.0.0
Can any one help....
Thanks,
Benoy Bose
The application is located in the Downloads folder on the phone.
If this is not what you are looking for has an answer, please clarify your question.

Resources