How to run SQLite on Blackberry JDE 5.0... ? Simulator of

Hai,

How to run SQLite on Blackberry JDE 5.0... ?

Is it really need all jde settings? for sqlite running applications?

I use the source-

class InnerClassScreen extends form {}
     
sqliteDB public database;
public InnerClassScreen() {}
            
LabelField title = new LabelField ("Create DB application",
LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
setTitle (title);
Add (new RichTextField ("initialize db create process..."));
            
try {}
URI uri = URI.create)
"file:///SDCard/Databases/database1.db");
sqliteDB = DatabaseFactory.create (uri);
Add (new RichTextField)
(("Status: database was created successfully."));
} catch (Exception e) {}
System.out.println (e.getMessage ());
Add (new RichTextField)
(("Status: database has not been created."));
Add (new RichTextField (e.getMessage ()));
e.printStackTrace ();
}
}
}

Unfortunately had the exception-

net.rim.device.api.database.DatabasePathException: invalid path name. Path does not contains a list of appropriate root. See class FileSystemRegistry for more details.

Hello
In your eclipse go to debug configurations in select tab Simulator, in memory of Simulator tab selection in this last use system files from the pc to SDCard policy file box to check this and give some trail (IE any path of the folder) this directory is worked as a SD card in your Simulator...

Thank you...

Tags: BlackBerry Developers

Similar Questions

  • How to write a program that allows an HTTPs connection to the APACHE TOMCAT server in blackberry JDE

    Hello.. I am very new to the blackberry JDE environment. But then, I have a project in which I should write a program that will make an HTTPs connection to the apache tomcat server using blackberry JDE. The simulator which I use is 8330-JDE.

    Here is my code...

    import java.io.IOException;

    Import java.io.InputStream;

    Import javax.microedition.io.Connector;

    Import javax.microedition.io.HttpsConnection;

    Import net.rim.device.api.ui.UiApplication;

    Import net.rim.device.api.ui.container.MainScreen;

    public class Httproto extends UiApplication

    {

    public public static void main (String [] args)

    {

    Httproto instance = new Httproto();

    instance.enterEventDispatcher ();

    }

    public Httproto()

    {

    pushScreen (new HttpsConnectionScreen());

    }

    }

    final class HttpsConnectionScreen extends screen

    {

    public HttpsConnectionScreen()

    {

    HttpsConnection c = null;

    InputStream is = null;

    int rc;

    try {String url =

    "https://192.168.2.3: 8443/cit/j_acegi_security_check? j_username = sanogo & j_password = redhat;

    c = (HttpsConnection) Connector.open (url);

    c.setRequestMethod (HttpsConnection.POST);

    System.out.println ("connection is open with the server");

    Get the response code is open the connection,

    Send the request and read HTTP response headers.

    The headers are stored until asked.

    RC = c.getResponseCode ();

    System.out.println ("response from the server" + rc);

    if (rc! = HttpsConnection.HTTP_OK) {

    throw new IOException ("HTTP response code:" + rc);

    }

    is = c.openInputStream ();

    Get the ContentType

    The string of type = c.getType ();

    The length and process data

    int len = (int) c.getLength ();

    if (len > 0) {

    int actual = 0;

    int BytesRead = 0;

    byte data = new byte[len]; while ((bytesread! = len) & (real! = - 1)) {

    real = is.read (data, bytesread, len - bytesread);

    bytesRead += real;

    }

    } else {}

    int ch;

    while ((ch = is.read (())! = - 1). {

    }

    }

    } catch (ClassCastException e) { throw new IllegalArgumentException ("not a HTTP URL");}

    }

    catch (IOException ioe) {}

    finally {

    Try

    {

    if (is! = null)

    is. Close();

    if (c! = null)

    c.Close ();

    }

    catch (IOException ioe) {}

    }

    }

    }

    When I run this program in the Simulator, I can do nothing. Please correct me if I'm wrong in coding.

    As I am new to this blackberry JDE environment, ideas and suggestions on how to write and run the sample applications in the blackberry are more welcomed.

    Concerning

    Hinduja

    Make sure that your MDS starts when the Simulator starts.  In the JDE will in Edition > Preferences > Simulator > General and click the checkbox "launch Mobile Data System connection with Simulator Service.

  • RIM BlackBerry JDE tutorials

    I know there is a tutorial to use Eclipse to develop and simulate BlackBerry applications.

    Y at - it tutorials that illustrate how to use the RIM BlackBerry JDE [outside the menu [help]?

    I get the following error:

    UserInterface building...
    ...
    I/o Error: Cannot run program "javac": CreateProcess = 2 error, the system cannot find the file specified
    Error while building project

    When I Isaiah to compile my project using RIM BlackBerry JDE v4.2.0.98.

    I can not really understand what I'm doing wrong.

    Any advice?

    Thank you

    If your issue is resolved, please define brand 'Solution?' on the post that contains the answer to your question.

    Concerning

    Bika

  • Import in Blackberry JDE J2ME Application

    Hello

    I wrote a J2ME application using CLDC1.1 and Midp 2.1 in Java (TM) ME Platform SDK 3.0, now how can import this project in Blackberry JDE 4.7.

    I tried a lot of things, but I don't get how to import it in Blackberry JDE 4.7. Please suggest me in this regard

    What have you tried?

    I thought you just create a project, then add all the sources for this project?

  • How do you see the System.out.println (without using Eclipse and BlackBerry JDE)

    Hi all

    I just want to know if there is no solution to see System.out.println.

    I use neither Eclipse nor BlackBerry JDE for my development.

    I have my jar, jad files. I convert my jar file using the CAP tool. The .cod files are generated.

    I start the trainer. Now I have 2 windows: Windows Simulor and the output (see picture).

    Then I load my .cod files. But I see not all System.out.println ("...") in the output windows.

    How can I see these System.out.println ("...")?

    Please help me.

    Thank you all.

    Thanks for your help.

    I try your solution EventLogger.

    But I have another problem:

    My request is not a native application (it is a midlet in J2ME, not a UIApplication). Do you think that it will work with EventLogger?

    How can I make a registry for EventLogger:

    static boolean register(long guid, String name) 
    Registers the name and the guid of the calling application.
    static boolean register(long guid, String name, int viewerType) 
  • How do I use a different version of the BlackBerry JDE?

    Hello

    I installed BlackBerry JDE version 4.5 to 6.0.

    How can I find out the current version used to Eclipse?

    I also try to change using the JDE follosing version this article, http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Confi...

    But there is no such ide.bat under the directory.

    Thank you.

    Under your project directory, there is a JRE System Library. Right-click on it and select Properties. After that, I think you know what to do.

    I hope this helps.

  • How to make the system module in blackberry jde plugin for eclipse 1.3

    can someone please tell me "how the system module in last jde plug-in for eclipse"?

    Because I don't get any option as in the previous.

    Thank you & best regards

    Nrupay shah

    Each application needs to at least 1 entry point.  You might have the auto application run at startup and does not display an icon.

    Or you can have both with the help of another point of entry.  Could be invoked from an icon, and the other could auto start.

  • How to change the icon of the Application on Blackberry JDE 6

    Hi, do someone know how to change the icon of the application of the project, we have created in the JDE? I searched the forum, and suggestions should go to the project properties, go to the "resources" tab and add the icon file. I have also included the file icon (PNG 68x68pixel) to the project.
    But this does not seem to work for me.
    I also tried to build clean, remove files jad and others, always not when I tried the app Simulator or on real device. Any help will be appreciated.
    I use Blackberry JDE 6, test the application on the actual device (9800), Simulator (9700). And the app that I'm testing is just a pushscreen simple helloWorld app, not a lot of code here. Thank you.

    Here's how to put the icon in BlackBerry JDE.

    1. Add the image to your project.
    2. Right-click on the image and choose Properties.
    3. Check "use as icon for the Application.
    4. Rebuild the application.
  • Device = BlackBerry software? Blackberry JDE version?

    Hey there everyone, I'm rather new in java programming on blackberry, and I feel like there is a mistake of very basic communication between me and my program.

    I am writing a small program to my blackberry a short work for me, but I don't know if it'll work on my older curve blackberry.

    I use Netbeans 6.8 and added the Blackberry JDE 6.0.0 as a custom Java ME platform.  So my question is:

    How can I make sure that the classes and methods of the JDE 6.0.0 will work on my long-since-updated Blackberry 8330 m, which has a software system 4.5.0.186 (Platform 3.2.0.59).  Is there something in the classes and methods that would make me look out?  I should rather check all my imports and the method calls against http://www.blackberry.com/developers/docs/4.5.0api/index.html ?

    Indeed, how can ensure me that I can use with BB, which are even older?

    the JDE version must be equal to or lower than the version of the BB OS. If for example on a device running 4.5.0, you can use 4.5.0, JDE 4.3.0 4.2.1 etc., descendant of the version of the device

  • How to run multiple simulators run on different PCs

    I'm working on an application where I have several clients to communicate through BBM, the imam surveys using sdk 6.o BBM surveys

    He has only two simulators, I tried to run another instance of another PC Simulator, change batch simulators file settings, configure the IP address of the computer where MDS is changed running.also app-param = regSrcPort = 9784 and also changed the pin code of this instance.

    My bat file (sim3.bat) simulators is like thi

    fledge.exe/app = Jvm.dll / Pocket = 9800/session for partner = Sim1/app-param = JvmAlxConfigFile:9800.xml/data-port = 0x4d44/data-port = 0x4d4e /pin = 0x2100000A/app-param = regVersion = 3/app-param = regDestIP/app-param = (ip address of the pc running Simulator MDS) = regDestPort = / app-param 19781 = regSrcPort = 19784/app-param = DisableSyncServiceRecord/title = ' Simulator of BlackBerry 9800-3 '.

    but communication is not good, I can only receive message but cannot send from this instance...

    can someone help me how to communicate b'w all these instances of simulators...

    Hey,.

    I have resolved, in fact I forgot to set the config of Mds

    http://docs.BlackBerry.com/en/developers/deliverables/25813/Run_the_MDS_Simulator_1347972_11.jsp

    Before you start: End task, Configure the simulator of BlackBerry MDS to use unlimited strength encryption. If you use the BlackBerry MDS Simulator on one computer other than the BlackBerry Smartphone Simulator, in therimpublic.propertyfile (by default, in C:\Program Research In Motion\BlackBerry JDE 6.0.0\MDS\config), changing theUDP.send.host

    value to the IP address of the computer running the BlackBerry MDS Simulator.

    It's only question...

    now it is perfect. b'w multipal instances of simulators on different PCs.

  • Bulding error with BlackBerry JDE project

    Hello

    I tried to create my application on BlackBerry JDE 5.0, and she's still fails with the following message is displayed:

    SimpleUI building
    C:\Program Research In Motion\BlackBerry JDE 5.0.0\bin\rapc.exe codename = SimpleUI SimpleUI.rapc warnkey = 0 x 52424200; 0 x 52525400; 0 x 52435200 import =... \lib\net_rim_api.jar "C:\Program search in Motion\BlackBerry JDE 5.0.0\bin\SimpleUI.java".
    Error while building project

    The same code can be built and run successfully on Eclipse with the BlackBerry plugin.

    Can anyone help?

    Check your path once again, I think that you are missing something in the path.

  • Full duplex to BlackBerry JDE 4.7

    Hello

    I know that his duplex (play and record at the same time) is not supported in BlackBerry JDE 4.6.

    I saw the article - "not sure I have it is a bug or a feature. We use two players: one for record, another for reading ', but I couldn't find the solution.

    Does anyone know how to implement the application with the duplex sound?

    Alternatively, the BlackBerry JDE 4.7 does support duplex sound?

    Thank you.

    Best regards, Ricos.

    Yes. It is possible. Play and record on two separate applications. Oh, make basic applications.

  • BlackBerry JDE

    Hello

    I just installed the Blackberry JDE 6 and JDK (newest).

    After installation, it ran very well, so I closed the JDE and attempted to reopen it, it gives me the error message

    Cannot find RIMIDEWin32Util.dll. It is a prerequisite of the IDE.

    I HAV changed something that's directly after installation!

    Thank you

    In my setup, the RIMIDEWin32Util.dll file is here:

    C:\Program search in Motion\BlackBerry JDE 6.0.0\bin

    If you are running on Win 7, it could be a permissions problem.  Search the forum for Threads of installation of Win 7.  Most of them are in Eclipse, but you may get advice on things that can go wrong.

  • How to run no Ui application

    Hi all,

    I'm working on request blackaberry.

    I have a problem with no ui application performance.

    I have to write ui non-application, which is not a show in the blackberry desktop (I mean the icon of the application, which is display on the screen of the device).

    and I have to run no ui application to interval given automatically, or whenver the contacts are add, edit and delete.

    So how to run my application no user interface which is not present in the screen of the blackberry device. ?

    Thanks in advance for any help and better understand my English.

    If you select the "system Module" Application icon will not appear.

  • Install the simulators BlackBerry JDE 7.0, Windows 7

    I've developed for BlackBerry for awhile.  I lived two computers and many JDE.  Not once have I could download and install a simulator that works with the BlackBerry JDE.  Now, I don't really have a choice and I need to install the 9850 Simulator.

    The simulators that I download install and run standalone, but not BlackBerry JDE.  They are not displayed and my attempts to create a new profile of BlackBerry JDE Simulator so far have failed.

    I don't see anything when I did a search, surely someone else has had this experience.

    Thank you!

    Hi James,

    I have the JDE and several simulators device that runs correctly under Windows 7 64-bit set. Of course, I remove UAC before performing facilities. The JDE must be able to update the files when a new Simulator is detected and UAC seems to stand in this action.

    Turn off UAC (at your discretion, of course), then re - install would be an option to test. The other would be trying to install in a directory that your user account has or is governed by the UAC differently than the directory "Program Files" (computer desk or C:\).

    Kind regards

Maybe you are looking for