In Blackberry package javax.microedition.amms.* prob - blackberry

I am developing a QR code scanning application using Zxing library in Blackberry JDE 4.6. For that I have used different package in packages of javax.microedition.amms.* . Suddenly that imports are working fine, suddenly it failed to import any package javax.microedition.amms.* and starting to throwing problem. What is probable cause of this prob? I have already tried to repair the the JDE by the installer. But it does not help anything. What is way out from it?

Blackberry JDE 4.6 does not JSR-234 features. So it is not supporting javax.microedition.amms.*

Related

Integrating Zxing library 2.2 in ios

I downloaded Zxing library 2.2 and tried to integrate it for 1d/2d barcode scanning within my ios project. Multitudes of errors came in, the latest being NSORuntime errors ( I am pretty much sure it is because of the cpp files) ...... I tried to solve them, but they just keep appearing. I am at sea as to how integrate this barcode library into my ios project. Any kind of help is appreciated
I've encountered to same problems, so I decided to use sample project in the ZXing Sample. I removed xib files and added storyboards, also fixed some minor issues and voilĂ ! Now its working flawless.

NoClassDefFoundError while preverify the jar files in BlackBerry

I have also asked this question on the BlackBerry support forums, under the thread "NoClassDefFoundError while preverify the jar files in BlackBerry"
I am adding a library files(jar files) in my BlackBerry Project and and try to run it. But it is giving me the below error : Error!: Missing stack map at label 77. So i try to find out the issue and find this link: Preverify Link
So i tried to fix this issue using preverifier. As i am using BlackBerry eclipse plugin, i have tried in this way:
Copy the jar file in the bin folder of my eclipse 6.0 plugins (eclipse-SDK-3.5.2-win32\eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.29\components\bin)
Execute the following command in the command line:
preverify -classpath "<path to 6.0.0.29 SDK>\net_rim_api.jar" "ArcotOTP-Lib-Java-Test-2.0.0.jar"
But after running this line, i am getting the below error:
Error preverifying class Mypackage.API$1
java/lang/NoClassDefFoundError: Mypackage/Test
BlackBerry devices are running on the Java-ME platform, so you can't use modern java features. Typical Java jar files these days use newer features that are not backward compatible with the Java-ME platform. Some projects do go out of the way to be backward compatible, like Bouncy Castle. But that is rare.
This question, duplicated on the BlackBerry forums, was also answered on the BlackBerry forums, which I will capture here:
simon_hain:
and is it a j2me library?
Arindam Mukherjee:
No it is java library..all classes are basically java classes. The same library i am using for android also and it is working fine fro me..
simon_hain:
BlackBerry uses J2ME as a base, Android uses J2SE.
You cannot use an Android library on BlackBerry unless you re-compile it (and resolve all the errors due to missing reflection, lists etc)

Phonegap Torch for IOS refuses to compile

Hey I'm trying to make the phone gap IOS work together with the Torch plugin.
The cordova app(2.1.0) ready was displaying before i proceeded with the torch plugin installation.
Though now i get an error when trying to compile it. I know absolutely nothing about IOS developing, so I'm pleading you guys for help. Here is a screenshot of the errors in the Torch.h:
Also errors in Torch.m:
Screenshot of package explorer:
after using Elio' .h changes it resulted in it compiling, but .m file is now giving these errors:
I've written a torch plugin for Cordova 2.2.0. You cn find it here:
https://github.com/tomschreck/iOS-Torch-Plugin
I think the problem is in the preprocessor macro of the torch plugin, anyway saw that you use cordova 2.1.0 you can remove this part on the plugin : try this.

Generating EAN-13 barcode on Blackberry

I am tryint to generate an EAN-13 barcode in blackberry 5 sdk.I know I can do this in Blackberry 6.0 but I can not use ByteMatrix in 5.0, can you help me or give me an example about how to do this ?
ZXing is an open source project. You can copy the classes you need, or if it is too messy, just download the packages you need from the library and refactor them so that the package names do not collide with the Zxing ones already in blackberry 6.0.

Unable to Create a Database in Blackberry eclipse

I am trying to create a database in blackberry eclipse with jde plugins. I am using Eclipse IDE v.3.4 and pluging v. 1.1 . I have also downloaded an SqLite demo project to understand it. I have searched many sites and tried to run a sample program by copying the code, but it doesn't work. It shows a problem with the following lines:
import net.rim.device.api.database.*;
import net.rim.device.api.database.Database;
import net.rim.device.api.database.DatabaseException;
import net.rim.device.api.database.DataTypeException;
import net.rim.device.api.database.Row;
import net.rim.device.api.database.Statement;
I am not getting the following things:
1) Do I have to make the net.rim.device.api.database package myself?
2) How do I create, update and retrieve information at runtime?
From the sounds of it, I'm not sure that you are building your application with the BB JRE.
How did you create your project in Eclipse?
In your package view, there will be a line that shows something either like Blackberry JRE 5.0.0 or Blackberry JRE 4.5.0 or possibly JDK 6
In order to access your rims, you need to have the BB JRE 5.0 (or 6.0 since it came out yesterday) in your project's build path.

Resources