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.
Related
I came across a websocket example that I would like to use. However it uses import 'dart:html';. When I introduce that in my Flutter project seems like its not being picked up. Do I need to add additional dependencies to the pubspec.yaml?
dart:html can't be used in Flutter.
It is for browser applications only.
dart:html also only comes with the regular Dart SDK, not with the Dart SDK shipped with Flutter.
I know this is an old question but let me drop this answer here.
I've searched for a web crawler/scraper for Flutter for a while now. I've tried to use FlutterWebview and also the HTML package but no way. Recently I've found a new package for this.
The advantage of this package is that it is really cross platform as explained:
Cross-platform dart:html that works in the browser, Dart VM, and Flutter.
Typical use cases are:
Cross-platform application development (e.g. Flutter mobile and web versions).
Web crawling and scraping
you can use universal_html for any scraping/crawling purpose
Since the merge of Flutter-web into the main Flutter repository, it's no longer possible to directly add imports for web libraries (e.g. dart:html) in a Flutter project on the main channel when targeting Web, Android and iOS.
Use the universal html package which provides extensive support for multiple platforms and web libraries.
From the root level of your project, command
1.
flutter pub add universal_html
2. import 'package:universal_html/html.dart' as html
This package isn't required to run some web files (e.g. dart:js). In my case, I just had to remove the import 'dart:js' import statement.
With: Eclipse Neon, Gluon plug in, Gradle plug in - exporting javaFX to iOS. Exporting from a mac book air mid 2013.
Since: Today, after I installed the new iOS 11 update. It worked 2 weeks ago with the previous version of the OS.
The error LOCKDOWN_E_PLIST_ERROR is given in the eclipse console when I LaunchIOSDevice - a Gradle task. How come? How can it be solved?
Some background information: After managing to set up eclipse, gluon, and gradle onto my mac (which where necessary to export to iOS javaFX based projects). I had some problems exporting/building it to iOS. I had to increase the max working memory up to 2 gbg by altering the Eclipse.ini - file. I also solved another type of problem (the Default-Info.plist file inside the gluonprojects) - Where I had to create a new such file from inside Xcode and change the the package name given inside it, and somehow connected to my AppleDeveloper account. Then I replaced the plist file inside the gluonproject and it all worked fine...
Until now, when I have come across this new error that I need help with!
well I have to update from cordova 2.5.0 to cordova 2.9.0 - so I have to update first from 2.5. to 2.6 to...2.9.0
I'm always having troubles with these upgrades, because I'm not a native speaker and might get the documentation on cordova.apache.org wrong
Ok here is where I'm stuck right now:
I have to run the create command with the following parameters:
- Path to your new Cordova iOS project
- Package name, following reverse-domain style convention
- Project name
2 questions:
- is the command-line-tool the terminal
- what is meant by package-name? Is is important, that this new project should have the same package-name and reverse-domain-style like my real project i want to upgrade from 2.5 to 2.x?
Sorry if this is a ridicolous question, but I'm really desperate right now :(
Hope someone could help me.
Here is the link which will help you to upgrade your existing PhoneGap application.
http://docs.phonegap.com/en/2.9.0/guide_upgrading_android_index.md.html
Yes you need to use the terminal for using command line tool.
Package name is used for unique identification for your app. So it is important as the same package name you also need to declare in your provisioning certificate for iOS . So you need to give the same package name as in your existing project.
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)
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.*