Create a library in Blackberry JDE

Learn more and more :-)

I want to create a library for a couple of functions.  I can what I have to specify 'Library' in the definitions of the project

Several output files are created. To use the library, I guess I should do an import in the class where I want to use

the functions. What file?

Anything else I should do?

Hi ingvar_e,

What do you mean by import all projects does not work?

If you have a common project, the classes you want to reuse in 3 different projects, then to make joint project as project of library is the best solution, I know. What confuses you with this concept.

If you have a JAR file, then take a look at this article to compile library:

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Compi...

Tags: BlackBerry Developers

Similar Questions

  • 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.

  • Create the user in BlackBerry 5 environment

    I am trying to create a user in Blackberry 5 environment.  I am to convert the code from c# to vb.NET.  In c#, the code works, but I can't have two lines to convert to bb.NET.

    Below, I have a snippet of code that is sent me errors. The code red, bold, underlined is the problem, and he in purple here is the real error message.  I need help on getting this code written in vb.NET.

    Dim request2 as new BAAServiceEmailExchange.gatherEnableBlackBerryUserAttributes)

    request2. Result = userAccount

    request2.locale = "en_US."

    Dim result2 As BAAServiceEmailExchange.GatherEnableBlackBerryUserAttributesResult = .returnValue emailExchangeWebService.gatherEnableBlackBerryUserAttributes (request2)

    If not (result2.gatherEnableBlackBerryUserAttributesReturnStatus.code = BAAServiceEmailExchange.GatherEnableBlackBerryUserAttributesReturnStatusEnumType.SUCCESS) then

    Return False

    EndIf

    Dim createUserRequest As New BAAServiceCore.createUser

    Dim userEnableBBAttributes As New BAAServiceCore.UserEnableBlackBerryAttributes)

    userEnableBBAttributes.enableBlackBerryUserAttributes = BAAServiceCore.EnableBlackBerryUserAttributesType (result2.enableBlackBerryUserAttributes.Length)

    The error is: EnableBlackBerryUserAttributesType is a type of BAAServiceCore and cannot be used as an expression

    Sun userAttrType (result2.enableBlackBerryUserAttributes.Length) As BAAServiceCore.EnableBlackBerryUserAttributesType

    userEnableBBAttributes.enableBlackBerryUserAttributes = userAttrType

    For j AsInteger = 0 To result2.enableBlackBerryUserAttributes.Length - 1

    userEnableBBAttributes.enableBlackBerryUserAttributes (j) = result2.enableBlackBerryUserAttributes (j)

    The error is: value of type: BAAServiceEmailExchange.EnableBlackBerryUserAttributesType could not be converted BAAServiceCore.EnableBlackBerryUserAttributesType

    Next

    OK, I solved the problem with the following line:

    userEnableBBAttributes.enableBlackBerryUserAttributes = BAAServiceCore.EnableBlackBerryUserAttributesType (result2.enableBlackBerryUserAttributes.Length)

    The error is: EnableBlackBerryUserAttributesType is a type of BAAServiceCore and cannot be used as an expression

    I've implemented the web references for each of the 4 services web.  It turns out that the Namespace (the BAAServiceCore.) is the culprit, because you cannot share types across multiple web services.  So, I created a dll library using the proxy.cs (from the sample code) file and added a reference to this dll, removed the web references and removed the Namespace in all cases (e.g. BAAServiceCore.EnableBlackBerryUserAttriibutesType becomes EnableBlackBerryUserAttributesType).  I hope this helps someone else

  • 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 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.
  • How to include the shared library of BlackBerry in a native extension WebWorks

    I developed a native extension WebWorks that works very well on Simulator and devices when included in a webworks app.

    I also have a sample of waterfalls project with the same code base that I use to test the WebWorks extension code.

    Since a large part of the code is reusable, I decided to create a shared library of BlackBerry, so I can reuse in other projects. When I include the NEW shared library in the waterfalls and then everything works well, as before.

    When I include it in the extension WebWorks it draws very well. The .so file size was much smaller and that worried me (I suspected that the shared library was not included in there). But since its construction very well I went trying to run my application webworks. When it came to hitting the extension I got a ' need of error. Cannot find the library of blah/blah/...so'.

    I had this before and found out that it was because the dependent QT libraries have not been correctly referenced. It so that the shared library is not properly referenced/copied /-thing... This event is supported? For example, by using a custom in a WebWorks extension shared library?

    It worked

    Version 2 is almost right

    In the library paths pane Add...

    ${workspace_loc: / / extlibs/device$ {ProjName}}

    for peripheral and do Simulator

    ${workspace_loc: / / extlibs/Simulator of ${ProjName}}

    Always with libname in libraries

    I just linked to unrar successfully like this library

    Whew - they do this hard work of stuff

  • 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

  • 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...

  • 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?

  • PC configuration to use BlackBerry JDE v4.7

    I'll expand BlackBerry Connect via BlackBerry JDE. Someone could give me an opinion on PC hardware configuration required to use BB JDE v4.7, as the speed of the CPU and the size of RAM?

    Thanks in advance.

    Hello, Victor.

    Configuration you provided will be enough to create applications of BB with JDE 4.7

    It's ok and it will work.

  • playlists iTunes 12 lost when creating new library in Windows 10

    I'm working with two iTunes 12 libraries in Windows 10. One is mine, the other, I want to create, is my wife. When I try to build his library and return to mine, I lose my original library reading lists, so I keep having to restore my library.xml file. I think I follow the instructions carefully on the creation and by selecting a library, but I'm apparently something wrong. DETAILED instructions are available on how to create and switch between libraries both iTunes and two sets of playlists?

    Hello artm124,

    Create a new, discreet iTunes Library need only open iTunes with the SHIFT key, and clicking 'create the library... '. "When you are prompted. Once you have created a new library, you can switch back to your library (complete with playlists and other metadata) to leave iTunes and once again open it with the SHIFT key.

    Windows

    1. If iTunes is running, quit iTunes.
    2. Hold down the SHIFT key. Then, in the start menu, choose all programs > iTunes > iTunes.
    3. You will see a message that says choose iTunes library. Depending on what you want to do, choose library to choose or create.

    If you do not see the message, try again. Remember to hold down the Option key if you use a Mac or the SHIFT key if you are using Windows.

    Open a different iTunes library file or create a
    https://support.Apple.com/en-us/HT201596

    If you are concerned about the potential loss of your playlists and other metadata stored by iTunes, make sure you have a backup of the iTunes Library.itl file which is inside your iTunes Library (which can be as simple as the copy of the file on the desktop).

    The iTunes Library.itl file is a database of songs in your library and playlists that you created. Some specific song data is saved in this file.

    On the iTunes library files
    https://support.Apple.com/en-us/HT201610

    Please note that if your iTunes content is stored in your iTunes library, it can help to make sure everything is where it should be. The article below the link provides a wealth of information to check and touching your iTunes library is there and it should be shaped.

    Search and organize your iTunes media files
    https://support.Apple.com/en-us/HT204668

    I hope this helps!

  • What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    Your library system can be on an external drive, if the drive is Mac OS extended (journaled) format and mounted on-site.

    But you must be careful, your external drive is always connected and available before the Photos and to import new photos.

    If Photos opens a different library, news, you can switch to the library on your external drive by double clicking on an external library. You can have several libraries, no problem.

    But pictures don't have any tools to merge libraries. You can switch between libraries, then open them alternately.  To merge two libraries export the photos of the smallest library and import the photos exported in the largest library.

    Or use third-party "PowerPhotos" to move photos between libraries.  But the merger is not supported in the free trial version. You must purchase the full version. You can download it here: Fat Cat Software

  • Impossible to download Blackberry JDE

    Hello

    I am trying to download Blackberry JDE v4.5 for these last two days, but after downloading about 14Mo, Server error is coming. Same is the case with my friend who is also trying to download Blackberry JDE. Is there a problem with the server?

    Thanks for your reply. Waiting for the issue to be decided.

  • 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.

  • BlackBerry JDE fails to start after the installation of Simulator Tour 9630

    I use JDE 4.7.0 on Win XP + a bunch of simulators.

    After the Tour 9630 Simulator (v 4.7.1.40), I installed the JDE does not start.

    I tried to run ide.bat via command line - it does not give error messages.

    I tried to reinstall my JDE (with deletion of the dir of installation in order to remove settings from JDE is) - it did not help.

    I am now able to run the JDE again after that I uninstalled the Tour 9630 Simulator. But I really need this Simulator because I develop an application for the round.

    What could be the problem?

    Thanks to Marc post here the solution I managed to solve this problem.

    The solution is:

    1. install the Simulator
    2. Make a copy of its installation directory
    3. uninstall the Simulator
    4. manually create a new Simulator in JDE by using the copy of the directory

Maybe you are looking for

  • I can't restore factory my MacBook

    I am trying the factory restore my macbook Pro, but I can't get OS x to reinstall I erased the disc, then tried to reinstall Yosemite but after that I got my Apple ID and password, it says "this article is temporarily unavailable."  I looked online f

  • If I upgrade the ICloud storage all my devices share this cloud (same user)

    It seems that I am running out of storage according to all the emails from Apple. I use three apple devices. If I upgrade the cloud storage is shared by all devices? (Same user name and ID Thank you

  • You can create new templates in Garageband 10.1.0?

    I am a new user of Garageband and love the feature... when it's working properly.  I am running in a few annoying quirks of the interface user and the usual bugs - crackling, latency, etc. One of the more annoying omissions is that I don't see a way

  • Re: Satellite L40 - N14 sudden alarm high every now and then...

    I was wondering if anyone knows this phenomenon; a * high-pitched sound coming from the equipment of every once in a while... * I bought my laptop last year and use 4 to 8 hours daily. I use it only for the word ducuments, posting photos, downloads,

  • BlackBerry Smartphones BBM do not change the display picture

    I noticed that when I try to change my display picture that does not actually updated in the network. In other words, people still see my old picture instead of the new. Now, it's happening for multiple users on my BBM. I see people update their prof