Reputation: 231
I want to use java classes created in pure java project in my blackberry application. These classes are using file handling operations like object serialization,etc. I am using same jar file in android project and it is working. I want to use same jar in my blackberry project without making any changes in those classes. But in blackberry, in java.io package, all classes are not supported, like FileOutputStream, FileInputStream,etc. So is there any solution to this problem? Because I want to use same code.
Upvotes: 1
Views: 215
Reputation: 22775
Please read Does the BlackBerry Java SDK support 1.5 syntax? and Java version that RIM used
Basically Blackberry is Java Micro Edition JRE 1.3 so you can't use features of pure Java there.
But there are custom implementations of serialization, see Serialization via J2ME or BlackBerry APIs for example
Upvotes: 1