Definition path JavaEE in Blackberry JDE4.7.0.

Hello

I get this error message

C:\Program Files\Research In Motion\BlackBerry JDE 4.7.0\bin\ws\Searchbothand.java:29: annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
@XmlAccessorType(XmlAccessType.FIELD)
 ^

I understand that I want to upgrade source JavaEE 5. but failed to get an idea of how to set path JavaEE in Blackberry JDE4.7.0.Please help me in this

You cannot use annotations in j2me/rim api, they were introduced in a future version of java (j2me comes from 1.3/1.4)

Tags: BlackBerry Developers

Similar Questions

  • How to store default path folder image in blackberry?

    How can Hi all., I get picture of store by default path folder in blackberry JDE 4.5.0? I need to save this image on RMS... I can't use FileSystemJournalListener because I use MIDP to develop my Application... Thank you...

    Try this Knowledge Base article.

  • How to develop applications for blackberry 5

    I have developed an application that works fine in the Simulator, but does not on my real blackberry

    Some people told me that the problem is that I my 1.3.0 jde java eclipse plugin is for os 6 but mine is os 5

    the problem is that I can't upgrade my bb os because it's an old

    and I can't find a link for the jde plugin but for os 5.0

    Please someone give me a link

    You can switch the JRE used in eclipse, usually lower OS versions are preinstalled.

    right click on the project, the properties, the java build path, libraries, select blackberry jre, change

  • Service of blackBerry Smartphones concerns tarnish Blackberry

    Hello

    I'm a university student who has had my BlackBerry Bold 9780 for these last two years and have nothing but LOVED. I depend on my device smartphone for a number of functions throughout my life of all school days and have been nothing but satisfied with my phone! However, last month I had quite the battle with my provider MTS who seems determined to tarnish my relationship with my camera. You see, when I bought my BlackBerry I signed up for an extra year of warranty service to protect my camera, just in case something should happen after a year to ensure that you provide your customers. In early may, my screen started to give me problems, so I sent it in for repairs through my provider MTS and when I got back, I noticed that my unit was now working more slow and more problematic than when I had originally sent away. Now, I realize that this issue is not topically unrelated to the Blackberry, but I bring this to your attention today such that you might be able to do something to prevent suppliers of 'maintenance' your devices incorrectly and give your business a bad reputation. I decided at this stage I want to update my phone and will probably buy the rest of my contract with MTS and switch to a more professional provider, however I would definitely consider buying another BlackBerry device, but only where I'm assured that I would get a certain level of care from my provider.

    Your really

    Brandon

    A concerned customer

    Brandon, welcome aboard!

    First of all, we, like you, are BlackBerry users.  We love to help others with their problems of BlackBerry, but as a regular user, we have no control of how your carrier solves your problems in service.

    That being said, I suggest that you return to MTS to tell them that they have not fulfilled their obligation to provide a satisfactory service in your device.  They are contracted by BlackBerry to support your device.  If they are unable to provide a solution, they want to escalate your problem directly to BlackBerry technical support free of charge for you.

    Please go back to them and tell them to finish the job they started; It is their contractual obligation.

    Keep us in the loop.

  • WebWorks command not defined windows cmd

    I try to display the webworks on browser project, when the project working directory when I run webworks serve I got the following:

    'WebWorks' is not recognized as an internal or external command,
    operable program or batch file.
    

    Is it because of the installation error?

    BB WW2 SDK install log:

    Copy File:                Destination: C:\Users\Student\BB10 WebWorks SDK 2.2.0.15\webworks-ui\bin\shortcut_256.ico
                              Status: SUCCESSFUL
    
    Set Environment Variable: WEBWORKS_HOME = C:\Users\Student\BB10 WebWorks SDK 2.2.0.15
                              Status: WARNING
                              Additional Notes: WARNING - Could not get UNIX shell name for environtment editing!
    
    Set Environment Variable: PATH = %WEBWORKS_HOME%
                              Status: WARNING
                              Additional Notes: WARNING - Could not get UNIX shell name for environtment editing!
    
    Set Environment Variable: PATH = %WEBWORKS_HOME%\cordova-blackberry\bin\dependencies\bb-tools\bin
                              Status: WARNING
                              Additional Notes: WARNING - Could not get UNIX shell name for environtment editing!
    
    Refresh Windows Environment:
                              Status: SUCCESSFUL
    
    Execute Script/Batch file:   webworks
                              Status: ERROR
                              Additional Notes: ERROR - Error while attempting to execute the installation script
    
    Install Directory:        C:\Users\Student\Desktop\
                              Status: SUCCESSFUL
                              Additional Notes: NOTE - Directory already existed
    
    Create Link:              C:\Users\Student\Desktop\BlackBerry WebWorks 2.2.0.15
                              Status: ERROR
                              Additional Notes: ERROR - Unable to Create Shortcut
    

    I managed to solve this problem by following these steps:

    1. Open cmd.
    2. Run the cmd: echo %PATH% (to see the current status)
    3. Run the cmd: PATH = % PATH %; C:\Users\Student\BB10 WebWorks SDK 2.2.0.15
    4. Run the cmd: echo %PATH% (to see views)
    C:\Users\Student\WebWorks Projects\Calorie-Counter>webworks
    usage: webworks [--verbose] command [options]
    
    These commands may be used globally:
    
       create               create a new project
       create-headless      create a new project which includes a native headless component
       target               manage devices and simulators
       help                 view usage for all commands
    
    These commands may be used from within a project directory:
    
       build                package app into a BAR file
       run                  build and deploy to a device
       emulate              build and deploy to a simulator
       upgrade              upgrade blackberry10 platform
       plugin               add or remove plugins
       serve                start a webserver to host project assets
    
    See 'webworks help ' for more information on a specific command.
    
  • Same project does not work in the 9500 Simulator

    Hello

    I have developed a project KSOAP2 in blackberry JDE4.2.0 it works fine there. But when I run the same project in JDE4.7.0 9500 Simulator for me transport http and other functions do not work. Please help me wat could be the reason

    I think you need turn the pot of kSOAP2 a library cod. This link should be helpful:

    How - to compile a jar file in a library of BlackBerry

    It may first have to preverify the jar. This blog has some useful info:

    http://www.craigagreen.com/index.php?/blog/BlackBerry-and-NET-WebService-tutorial-part-1.html

  • File system error (12)

    Hey guys. I hope that all is well!

    You have a pretty annoying problem on my current project. I use a SQLite database for the storage of telephone numbers, and these data are subsequently used to help the user to make a phone call. In the main application, these phone numbers are saved in the sqlite database. Later, when the user wants to make a phone call (IE a menu item, that I placed in the phone app), they select my menu item, which loads a popup asking what number to call. The numbers are loaded from the SQLite database to populate a list box and from there, the user can select and call this number.

    The problem is when the application is in the background when the user does this. If the application is closed, then the numbers are correctly loaded, but if the application is in the background there are some exceptions thrown, at the opening of the SQLite database, both during the access to the file for my custom log file system.

    Assistance to get to the heart of this problem would be greatly appreciated. I will surround some code below to give you a better idea of what is happening. Personally, I think it's a problem with the files already accessible by the main application, but I don't know a way to stop that without bringing all kneeling, as access still requires the main application.

    Code:

    public MyDatabase(String APP_NAME, String DATABASE_NAME)   {     String root = null;       Enumeration e = FileSystemRegistry.listRoots();       while (e.hasMoreElements())       {         root = (String)e.nextElement();           if (root.equalsIgnoreCase("sdcard/"))         {             MyLog.LogInfo("The Device has an SD Card inserted");          }     }                 // we now know that the SD card exists        path = "file:///SDCard/BlackBerry/" + APP_NAME + "/Database/" + DATABASE_NAME + ".db";        try       {
    
              myURI = URI.create(path);         FileConnection fileConnection =              (FileConnection)Connector.open(path);            if (!fileConnection.exists()) // create the file          {
    
                  d = DatabaseFactory.create(myURI);                createTables(d);//This creates the tables         }// if            else              d = DatabaseFactory.open(myURI); // [1]           staticDB = this; //[2]        }// try       catch (Exception ex)      {             staticDB = null;          MyLog.LogError("Database Creation error: " + ex.getMessage()); // [3]     }// catch }// Database
    

    [1]

    *THIS IS WHERE THE CRASH HAPPENS* we get a file system error (12) here. Is the connection already open?
    

    [2]

    not called - an exception is thrown before we can do this, but this is used to create a static accessor
    

    [3]

    "file system error (12)"
    

    The static accessor:

    public static MyDatabase getCurrentDatabase()
        {
            if (staticDB == null)
            {
                new MyDatabase(appName, databaseName);
            }
            return staticDB;
        }// getCurrentDatabase
    

    It is being used by the app and also surely staticDB must not be null? But nevertheless, it is null, and a new database is 'created '.

    Yet once again, thanks in advance if you are indeed able to help me with this problem!

    Have solved this myself. Locked the solution below in case anyone ever has such a problem themselves:

     public void deactivate()
        {
            MyLog.LogInfo("Deactivated");
            try
            {
                MyDatabase.getCurrentDatabase();
                MyDatabase.closeDB();
            }
            catch (Exception e)
            {
                MyLog.LogError("Could not deactivate");
            }
        }
    

    This goes in the database closed and main Application class when lose us focus (i.e. when the application calls turn off). Here's the closeDB method:

     public static void closeDB()
        {
            try
            {
                staticDB.d.close();
                staticDB = null;
            }
            catch (DatabaseIOException e)
            {
                MyLog.LogError("Error closing DB " + e.toString());
            }
        }
    

    I have spent ages working through this without a solution, then posted here for help and worked the answer myself in an hour. Typical!

    Hope this helps everyone out in the future

  • I need solution for this...

    Hi all... I am a beginner in blackberry development.

    The code below is every time we click the ok button, it retrieves the content of the

    Saran.txt the SD card file and displays them on the screen. So far so good, but the problem

    is whenever I click on ok again, the content is displayed again. I don't want it to be

    displayed again instead, I want that he should be replaced. I am facing this kind of problem with all areas

    that appears on the screen, that is to say, the second time I click the button only one copy of this field is

    display again.

    can someone suggest a solution for this...

    package myText;
    
    import java.io.*;
    
    import javax.microedition.io.Connector;
    import javax.microedition.io.HttpConnection;
    import javax.microedition.io.file.FileConnection;
    
    import net.rim.device.api.io.transport.ConnectionDescriptor;
    import net.rim.device.api.io.transport.ConnectionFactory;
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.EncodedImage;
    import net.rim.device.api.system.PNGEncodedImage;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.*;
    
    public class myText extends UiApplication
    {
        public static void main(String[] args) throws IOException
        {
            myText theApp = new myText();
                theApp.enterEventDispatcher();
        }
        public myText() throws IOException
        {
                new Textdisplay();
        }
    }
    final class Textdisplay implements FieldChangeListener
    {
        MainScreen mainScreen=new MainScreen();
        ButtonField ok=new ButtonField("OK");
        //HttpConnection hc;
        //String url = "http://wordpress.org/extend/plugins/about/readme.txt";
        //InputStream is=null;
        public Textdisplay() throws IOException
        {
            UiApplication.getUiApplication().pushScreen(mainScreen);
            mainScreen.setTitle("Text file Fetching......");
            mainScreen.add(ok);
            ok.setChangeListener(this);
        }
        /*public void downloading() throws IOException
        {
            ConnectionFactory connFact = new ConnectionFactory();
            ConnectionDescriptor connDesc;
            connDesc = connFact.getConnection(url);
            if (connDesc != null)
            {
                HttpConnection httpConn;
                httpConn = (HttpConnection)connDesc.getConnection();
                try
                {
                    final int iResponseCode = httpConn.getResponseCode();
                     Dialog.alert("Response.. code: "+Integer.toString(iResponseCode));
                     mainScreen.add(new LabelField(httpConn.getHost()+"\n"+httpConn.getRequestMethod()));
                     is=httpConn.openInputStream();
                     StringBuffer buffer= new StringBuffer();
                     int chars;
                     while((chars = is.read()) != -1)
                     {
                        buffer.append((char) chars);
                     }
                     String text = new String(buffer);
                     mainScreen.add(new LabelField(text));
                 }
                 catch (IOException e)
                 {
                   System.err.println("Caught IOException: "
                        + e.getMessage());
                 }
            }
        }
        */
        public void Fetching() throws IOException
        {
            String path = "file:///SDCard/BlackBerry/textfiles/saran.txt";
            FileConnection FileConn=null;
            InputStream is=null;
            TextField label = null;
    
            int chars;
    
            Dialog.alert("entering");
            try{
                FileConn = (FileConnection) Connector.open(path,Connector.READ);
                Dialog.alert("file connection");
                if(!FileConn.exists()){
                    FileConn.create();
                }
                Dialog.alert("connection created");
                //int length = (int) FileConn.fileSize();
                //byte[] data = new byte[length];
                is = FileConn.openInputStream();
                //dis.readFully(data);
                Dialog.alert("not yet");
                StringBuffer buffer= new StringBuffer();
                while((chars = is.read()) != -1)
                 {
                    buffer.append((char) chars);
                 }
                 String text = new String(buffer);
                 Dialog.alert("Click to read data.......");
                 label.setText(text);
                mainScreen.add(label);
                is.close();
            }
            catch(Exception e){
                System.out.println("file not found:" + e);
                Dialog.alert("file not found"+e);
            } finally {
                try{ FileConn.close(); } catch(Exception e){}
            }
        }
        public void fieldChanged(Field f, int context)
        {
            try
            {
                //Dialog.alert("Fetching the file.......");
                mainScreen.add(new LabelField("Fetching the data..........."));
                Fetching();
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
        }
    }
    

    In your current code, ButtonField 'ok' is global, so you can refer to this anywhere.  Add a BitmapField which is overall too.  And then in your transformation, set this to the new Bitmap that you created and invalidate the screen (mainScreen.invalidate ()).

    If you add a BitmapField and it doesn't have a bitmap, it will not display.

  • How to use qnx using CS4

    Hello

    I use CS4 for development flash playbook and want to use the native device PIN feature.

    So, I tried to use the QNX API in my project. But I am not getting any compile errors and so unable to use it.

    Source code changes->

    var myText123:TextField = new TextField();

    myText123.text = Device.device.pin;

    addChild (myText123);

    Changes in CS4->

    File-> settings-> flash-> settings publication->

    Library path->D:\TabletOS\blackberry-tablet-sdk-1.0.1\frameworks\libs

    External-> library path

    D:\TabletOS\blackberry-Tablet-SDK-1.0.1\frameworks\libs\qnx-screen\qnx-screen.swc

    D:\TabletOS\blackberry-Tablet-SDK-1.0.1\frameworks\libs\air\qnx-air.swc

    Error:

    Error #1065: Variable qnx.system::Device is not defined.

    Suppose that the device class is not found, but I am not able to find a way to include it.

    Thanking you in advance,

    Sumit.

    I was using CS4 which felt no option to import the SWC files and mark them as external. CS5.5 fixed the issue.

  • A project is not import dependence projects any transfer using the Desktop Manager

    One of my projects have been dependent on two other projects and those dependencies are kept in the generated files .alx so.

    But, if I transfer the claim referring .alx files using Desktop Manager, its not actually transfer the other two dependent projects.

    Is it possible to import all dependent projects as well as with the main project?

    As I said above, whenever the dependency library project .cod file is in a different directory, its not loaded in the device using Desktop Manager, whenever we load the main project in the unit.

    Workaround solution:

    We need changes in files .alx file to specify the file .cod library with the actual path. [Note: BlackBerry JDE will not affect the actual path, he considers the name of file .cod without taking account of her real situation.] It assumes that the library .cod file is in the path where the main files .alx file.]

    I've specified as shown below:

    samplelibrary\samplelibrary. COD

    Note that the samplelibrary.cod mentioned with its parent directory, residing inside of the JDE project workspace, where the files the main project .alx file.

    I tried to use the tag of the element to specify the path of the file .cod without success.

    I don't know if this is a bug in BlackBerry JDE or it's the way it was designed to generate files of files .alx with project dependencies.

  • MacPro and Dreamweaver error message

    I recently got a Mac Pro.

    I installed DMX2004 and had this error and then bought DW8 and still get the same error. So, I had to go to my PC.
    Here is the error:
    "The local root folder, website of BS, does not exist. "Please select a new local root folder by clicking on the button manage the barns."
    Then I go to the site "edit" section in manage sites and look for the root folder. DW8 wants verrrry limited time and then shows me this message again. If I try to open a file, tells me it can't find the file, but it shows in my files.

    It's also show this same message on the file root of a site as well as other SOAP box race.

    Someone knows something about this incompatibility between the Mac Pro and the latest two versions of Dreamweaver? Never had this problem on my G4.

    > I changed the file info on about five sites (delete that)
    (> leading space on Mac Pro) and all seem to be able to find the root folder now.

    There are three things to check for in the site with file definitions
    paths-

    Local news:
    The local Site folder
    image folder by default, if you use this option

    Part of site:
    Location the site's "homepage"

    If you missed one, dw will put in place a dialogue like that of your original box
    question that the path is incorrect. The last of them on the homepage of the site
    would not cause a warning until you make a link to the site level control or use of the site
    feature card, not sure.

    not sure, but it could also affect the paths to the various other
    selected in preferences applications--> file types and editors

    good luck with it-

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • Question of FEAR (approval Workflow Engine)

    I try to implement AWE (approval Workflow Engine) and am having a little problem.

    I followed the instructions on the red paper related AWE of application. I have the following code. When this code is triggered, the cross reference table is filled. However, the table PSWORKFLOW does not get filled. The orinator has a supervisor selected in the workflow of its user profile tab. But nothing is routed to the user for approval. As I said the PSWORKLIST folder does not get filled up when this code is triggered. I'm trying to follow the code of EProcurment but wonder if it's a problem of configuration or coding. Any help is greatly appreciated. Thank you!!

    & reqRecord = CreateRecord (Record.CUS_VCHR_AW_VW);
    GetLevel0() (1). GetRecord (Record.VOUCHER). CopyFieldsTo(&reqRecord);

    & launchMgr = create PTAF_CORE:LaunchManager("VOUCHER",_&reqRecord,_"");
    & launchMgr.requester = "TEST";

    / * & launchMgr.appDef.trace_flag = True; */

    launchMgr.SetHeader (& reqRecord);
    & launchMgr.DoSubmit ();

    What version of PeopleTools do you use? I use PT 8.49, and my LaunchManager constructor looks like this:

    create a PTAF_CORE:LaunchManager(&PROCESS_ID,_&headerRec,_%OperatorId)_;)

    I think % OperatorId in my constructor is identical to your & launchMgr.requester = 'TEST '. If this is the case, the TEST user exist and have a supervisor?

    I noticed that you have trace flag commented. What do you get when you use the trace flag? You can write the trace to a file in the case of SavePostChange using code like this:

    / * vectorization options * /.
    Local file & trace = GetFile ("/tmp/awe_trace.txt", "A", "A", % FilePath_Absolute);
    & trace. WriteLine (& launchManager .appDef .trace);
    & trace. Close();

    Of course, this assumes that your launchManager brought component. The trace file will provide the step, step, path and information approvingly. If it fails on any one of these objects, you can see the failure in the trace file.

    What your Process definition, path and step criteria? You can set these "Always true" If you only have a definition, path and step.

  • When Installing Blackberry software error message Windows cannot access the specified device, path or file

    Try to install the software for my Blackberry on laptop, get the message Windows cannot access the specified device, file, or path may not be the appropriate permissions for access you element. What should I do please help...

    Re-download/save to your desktop > right click on its Setup.exeo run as admin.

    See you soon.

    Mick Murphy - Microsoft partner

  • Problems of libraries Java build path. With the help of an external CONTAINER as a library in a BlackBerry app.

    Hello

    I have two codes, the application code and the code of the library.

    The application should use the jar as a library file.

    Application-> App

    Library-> AppLib

    I work with Eclipse and JRE 5.0. I have a problem. I'm trying the AppLib.ja the Java Build Path of the application code, as in a normal Java application. Copy "AppLib.jar" in my project and select Java Build Path libraries does not work. Browser files doen't show me the new file. Therefore, I can select the library project folder as external JAR, but when I test the app on BlackBerry I get an error do not find the module:

    > App starting error: Module 'AppLib' not found

    To export my application for BlackBerry I only select the file "App.alx" with the Desktop Manager. I should also add, somehow, the Jar file?

    What I am doing wrong?

    I think if I could include 'AppLib.jar' because no JAR external to compile the project would be expected for that library properly in the "App.alx" but as I have said, for example, if I put the "AppLib.jar" in the folder "App\ lib\" file path browser version does not show me the file and I can't select it. I can only do so if I select in the AppLib\deliverables\Standard\5.0.0\, but not found problem occurs then.

    Can someone help me?

    I won't put my library code in the application code. It is not very comfortable. And it would be a bit dodgy.

    Thank you very much.

    Greetings.

    ibarrera, that is not the problem.

    First, when copying a file to your project via the OS Explorer, you must refresh the project in Eclipse in order to get visible. otherwise, if the Eclipse do not see, the .jar file is not going to join your project. But I know that's not the problem.

    In the second place, to get this .jar file be included in your project as non-external, you must add as first external, close this wizard properties re-open; Then select the .jar file, you just added and click on "Migrate JAR file" button. Find the .jar file in the project and click Finish.

    This is done, your project will be ready to be built and executed.

    I hope this helps. Good luck to all.

  • blackberry.io.file.saveFile () "safe" available paths?

    Hello

    I'm building a webworks smartphone app where I intend to store a simple text using saveFile() file.

    I've seen plenty of examples using the path of:

    filePath = "file:///store/home/user/appdata.txt"; var

    I have 2 questions...

    1.) are there other available paths? for example one for the files of the user, the other to the data of the application?

    2.) is the path of the store/home/user available to the blackbery owner (easily or via Tools?) or is there a path where a file can be placed out of reach of the user?

    The reason I ask is that I want to store values of 'secret' in this file and do not want the user to the ruin of their game to 'find' the secrets.  Or worse still to find and publish all over the Interwebz ;-)

    for example

    levelFourUnlockPassword = AGTY79EBX9708PL

    levelFiveUnlockPassword = JSES64KTGW9121V

    Follow final question... If there is no folder "safe" to put files away from the user... anyone has a recommendation on encryption 2-way decent to scramble the content? : PEI

    See you soon,.

    Steve

    1.) are there other available paths? for example one for the files of the user, the other to the data of the application?

    There is a PlayBook, but not on a BlackBerry Smartphone

    2.) is the path of the store/home/user available to the blackbery owner (easily or via Tools?) or is there a path where a file can be placed out of reach of the user?

    All paths are accessible by the user

    Follow final question... If there is no folder "safe" to put files away from the user... anyone has a recommendation on encryption 2-way decent to scramble the content?

    If you store your data in an HTML5 database all data are encrypted and are accessible only by your application process.

Maybe you are looking for