NoClassDefFoundError with BB OS5

I have my application class, and I also need another class, a class GPSFinder for helping me find the location of the mobile.

In the class that extends the screen, I declare a variable:

GPSFinder gpsF;

and then using that variable throughout my application. It works fine when I test on a real device with BB OS6 or a simulator.

However, on devices with OS5. I get this error:

Eception exception: java.lang.NoClassDefFoundError

This error is generated when I reach the line of the above-mentioned declaration. It's like the device running os5 that cannot find the definition of the GPSFinder class.

The class application and GPSFinder are under a common set.

(I even tried importing the other GPSFinder, although this should be done by default in packages, but that didn't work either.)

I hope someone can help with this problem.

Thank you

You've built your application under OS 6.0 so it will work on phones OS 6.0 +.

Read the knowledge base article to find out what to do:

Appropriate version of the JDE BlackBerry and BlackBerry Java SDK

Tags: BlackBerry Developers

Similar Questions

  • NoClassDefFoundError with Bouncy Castle Library

    Hello

    I build and preverified Bouncy Castle bccore and bcpkix libraries and included in a BlackBerry project in Eclipse using the 7.1.0 plugin SDK BlackBerry.

    When you try to instantiate the CMSSignedData class I see a NoClassDefFoundError exception throw.  The exception returns nothing of getMessage() and printStackTrace() shows simply "no trace of the stack.

    Any ideas?

    Thank you.

    The problem is now resolved.  When there is a problem with the help of the Bouncy Castle code (even with it included directly in the source code in my test application) attached to the BB JDE 7.1.0.  Rebuild the project against the BB JDE 7.0.0 solves the problem.

  • Application does not work with the os5

    From MYApp
    Class 'net.rim.device.api.ui.component.PasswordEditField' not found.
    Start MYApp error: class 'net.rim.device.api.ui.component.PasswordEditField' not found.

    Question:-Application gives error on, click on the application icon

    test: = os 7 works fine, problem when I debug, run and even with device

    with OS 6:

    Class 'net.rim.device.api.ui.ScrollView' not found.
    Start MYApp error: class 'net.rim.device.api.ui.ScrollView' not found.

    to do this:-J' I re install java, blackberry eclips plugin

    :-quand I do new app with simple test screen his work also with password field another application also work

    : in construction and packing time without problem in any os

    and also I am again doing project and import source and then run but same problem

    Help me please

    has got the problem of his cause, 6 MB of size of construction

    sucking his blackberry error report

    When I have my app size is 6 MB his mistake to give as

    not found the password field

    After I have remove password field his give wrong listfield not found

    and Yes when I put 20 MB of data in the source app that time app is built, but the runtime is not installed in simmulater / device

    -Devloper blackberry can be understand.

    Anyway thank you for replay simon

  • app Webwork hardware back button

    Hello, I saw a post about it, but none of them have solved my problem. I m not able to intercept the event of the "back button" on my webworks app. My application closes just on the back key. The problem occurs only in the real device, with the Chrome its not quite the same market plugin code.

    Edit: I have a 9300 BB os6 and another with the os5 does not work on both.

    My config.xml file

    
    http://www.w3.org/ns/widgets"
            xmlns:rim="http://www.blackberry.com/ns/widgets"
            version="2.0"
        rim:header="RIM-Widget: rim/widget">
      http://www.example.com/"
              rim:copyright="Copyright 1998-2012 My Corp">My Corp
      FIDS_V3
      
      
      
    
    
    
    
    
    
    TCP_WIFI
    TCP_CELLULAR
    BIS-B
    MDS
    WAP2
    WAP
    
    
      
      
      
      
      
      
      
      
      
      
    
    

    and javascript used in index.html code

       
    

    Thank you for responding.

    The problem is that I was not including this page (index.html) in the package webworks. The web is a Web server and I put in the config.xml file of content pointing to this Web server. Is this a bad practice? The problem of adding the web project to the package is that to make changes, you need to do a full update of the application instead of change just the server.

    Apart from that, now my problem is that with

    blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,function handleBack(){history.back();return false;});
    

    When I press return on the first page the app does not close because I expected to do. Is it possible to pose as

    if (history.canGoBack()){
       history.back()
    }else{
       exit();
    }
    

    How is this controlled BB?

  • Pre-fill devices supported when submitting to the App World?

    Hello

    My application is compatible with all the devices of BBOS5 +, but whenever I release an update that I need to re - check all the device options supported on the supplier portal.  Is it possible to include this information in the bundle?  What will happen if I chose 0 devices?

    In addition, can users on devices that are running an operating system not supported (older) view/download my application if I chose a minimum requirement of OS?

    Thank you

    Paul

    thepaolo wrote:

    (1) is it possible to include this information in the bundle?

    (2) what would happen if I chose 0 devices?

    (3) in addition, can users on devices that are running an operating system not supported (older) view/download my application if I chose a minimum requirement of OS?

    (1) not at all, unfortunately

    (2) you must select at least 1 device. In general, if you select a device, only users with this device will see your app.

    (3) n ° using App World your application based on OS minimum and selected devices.

    Example: you select minimum OS5.0 supported and all devices - only users with devices OS5.0 will see your app

  • Cannot save the file (OS6)

    UPDATE: just found out that documentToBlob is compatible with the OS5. How to do the same thing in OS6?

    http://www.BlackBerry.com/developers/docs/WebWorks/API/BlackBerry.utils.html#.documentToBlob

    I wrote an application several months ago, which works very well with the OS5. But it does not work with OS6. Here is a simple example of creating a file, the application needs to do:

    config. XML

    
        http://www.w3.org/ns/widgets"
            xmlns:rim="http://www.blackberry.com/ns/widgets"
            rim:header="RIM-Widget:rim/widget"
            version="1.0.0">
         File Test
        Testing file
         http://www.example.com/" rim:copyright="no copyright" email="[email protected]">Example
         
         
         
         
         
         
         
        
        
    
    

    test.html

    
    
        Test
        
        
    
    
        testing
    
    
    

    scripts/test.js

    function loadTest(){
        alert("start");
        var filePath = "file:///store/home/user/appTest.xml";
        var xmlString = "test_data";
        var parser = new DOMParser();
        var doc = parser.parseFromString(xmlString, "text/xml");
        try{
            var blobData = blackberry.utils.documentToBlob(doc);
            blackberry.io.file.saveFile(filePath, blobData);
            alert("file saved");
        } catch(e) {
            alert("unable to save file: "+e.message);
        }
        if(blackberry.io.file.exists(filePath))
            alert("file exists");
        else
            alert("file cannot be found");
        alert("end");
    }
    

    Output of Simulator OS6 (6.0.0.337):

    • Star
    • Cannot save the file: undefined
    • file cannot be raised
    • en

    No idea why it does not work

    I couldn't find a solution to this, nor could anyone help. I had to rewrite my application to store data in a database instead of an XML file.

  • BlackBerry Smartphones problem change the language to send SMS on BB Curve 9300 3

    BlackBerry 9300 3

    Does anyone know if there is a quick way to change the language of the keyboard? My laptop has in Arabic and English keyboard keys, but no Arab option on the phone with the language settings.

    When I try to update the input languages to include Arabic via the desktop software, I get the following message:

    "BlackBerry® Desktop Software Update could not validate your BlackBerry® device.

    Aborting installation because of the failure of the validation. Some unsatisfied dependencies contained package. »

    The only advice I found is to go into the Woods under ~ library on my Mac with OS X 10.6.8 which will display messages to applications that need to be uninstalled as they are third parties and can not be validated. This suggests the Blackberry Appworld should be uninstalled that I did, but still have the problem.

    If anyone can help that would be great.

    Also, I would be grateful if someone can confirm if Blackberry phones are supposed to be that mind? I just spent my eighth time on it, and I'm regretting ever having bought the phone. I made phone calls with it and sent the texts in English, but other than that nothing. I already have a phone that is equal to a tenth of the cost of that tape also in Arabic, which I think is pretty useless Blackberry in comparison.

    I finally found a work around for this problem. I adapted the advice from the link here:

    http://forums.CrackBerry.com/Forum-F62/how-UN-brick-BlackBerry-Mac-336488/

    In order to clarify that I was using a BB9300 3 G Curve, with BB OS 6, with the latest version of BB Desktop, running on a Mac Book Pro.

    You must clean the phone and reinstall the operating system for phones in a way that eventually flashes the RAM on the phone, as it appears a large batch of phones were shipped with this bug.

    Once invited to fix the phone, you must choose the oldest version of the operating system offered by the Repair Wizard. It will remove your personal and settings files that will need to be manually reinstalled.

    My steps were as follows:

    FIRST OF ALL MAKE SURE THAT YOUR PHONE IS NOT CONNECTED TO YOUR MACHINE AND BLACKBERRY DESKTOP IS NOT RUNNING.

    1 delete the versions of operating system stored on your Mac by going to ~Library/ApplicationSupport/BlackberryDesktop/DeviceApplications

    2. empty the Recycling / Bin of the "trash".

    3 remove the battery from your Blackberry and then connect to your computer via a USB cable. The phone will display a battery with a red cross. The desktop software is expected to launch after that the phone is connected.

    4. you will be asked to repair or restart the phone. Opt for repair and you should be presented with different versions of earlier operating systems. He recommended the latest version for me, but in fact I found that I had to go straight to the first version of the operating system available which was OS5. Select this option and then start the download.

    5. I found that the phone has downloaded the whole software at once, but in the original notice it says that on the phone may need to be reconnected several times it falls, close and restart BB Desktop software every time. I found that it only happened when you try to install later versions of the operating system.

    6. halfway through the installation of the progress bar said "waiting for device commissioning. At this point, reinsert the battery.

    7. then wait that the phone restart which took more than 20 minutes for me.

    8. This should have completed the installation. Especially when the phone is installed with the OS5 he gave me an option to choose the input languages available on the phone and remove those unwanted. I received a message on BB Office recommends that upgraded the operating system 6, I did, and now works with the input languages.

    Again, this work around is to:

    http://forums.crackberry.com/forum-f62/how-un-brick-blackberry-mac-336488/ that I had to modify the steps that I pointed out in case it helps anyone in the future.

  • BlackBerry Smartphones unable to add new contacts or edit existing ones

    For these last days, I was suddenly unable to modify existing contacts or add new contacts on my 8520. I tried to back up data and decommissioning and the upgrade of the operating system and updated to the current operating system, but I still have the same problem.  I just 340 contacts...

    Please help for technical assistance...

    Please remove the Yahoo! Messenger or Windows Live Messenger because he has problems with phones OS5 resulting in the inability to modify and add contacts.

  • Memory of blackBerry Smartphones in the process of disappearance

    Bold 9700

    Fido carrier

    Bell Mobility phone (the phone is unlocked)

    6.0 bundle 2391 v6.0.0.534 platform 6.6.0.200

    Memory varies from 31 MB to 9 MB regardless of battery pull or device input (shift alt) reboot or turn.

    I did a wipe & OS was updated last week to regain memory space but this endevour has not been successful.  Applicaitons (3rd party & Core Apps like BBM, which are 100% necessary) account for less than 20 MB of space and with OS6 showing 130 MB of space I should be sitting around 150 MB / 250 MB of space... but who knows where all the memory goes.

    I had problems of stability with the OS5 and these issues have been resolved with OS6, it seems that OS6 is able to function better in low-memory situations.

    I have a 14 GB (or 16 GB? anyway, much) sd card on the phone where all photos and media is redirected to and the only media on the device itself are the media of pre-packaged OS6.    All BBM and other apps IM conversations are defined to save the map of support as well.

    No indication of this problem would be great

    See you soon,.

    xplodngKeys

    There is really nothing you can do, other than to manage your memory, as you already.

  • NoClassDefFoundError exception (only happen on OS5, OS6)

    I get an exception NoClassDefFoundError every time I try to run my application on OS5.  It only happens when I am referring to a specific class (which extends from screen and stores a persistent object too).

    Has anyone met a NoClassDefFoundError before?

    There is no error in compilation, and this happens ONLY when the OS5 run attempt, however will not happen when running in the OS6.

    I always have interesting problems

    The solution to your problem, you can find in the second post in this topic

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/in-Simulator-8530-everything-works-fin...

    There is a link to a tutorial on how to install an old JRE in eclipse.

    You will need to change then, under properties-> libraries

    I hope this could help you.

  • BlackBerry Smartphones Can I use the calendar to OS5 with OS6?

    I recently upgraded from BB Curve 8900 (with OS 5) to a Bold 9780 (with BlackBerry 6).

    Since I was about 20 clients appointment 2 hours a week, I found at the sight of the "week" of the calendar under OS 5 the best journal I used in more than 30 years! Each day for an entire week showed at least 9 hours and vacant 'niche roles' could be seen in the blink of an eye. The new calendar unfortunately shows no more than seven hours a day (sometimes as little as 5.5), and the details of any appointment obscuring part of the screen when the appointment is selected.

    I am not opposed to change, but I REALLY want to go back to the old calendar. Does anyone know if this can be done with the new operating system?

    Any help or pointers to workaround would be appreciated.

    Thank you

    You cannot use the application calendar of OS5 on your current OS6.
    the only alternative is to use a third-party calendar app. You can certainly find some with a user interface you like here:
    https://appworld.BlackBerry.com/WebStore/search/calendar/category/116?recordsPerPage=100

    I would like you to tell us who you like!

  • Cannot use jar with icon files gif and self signed certificate files (Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: oracle/ewt/laf/basic/SelColorChange)

    Hi all.

    I use Forms 11 g 11.1.2.1 and updating JRE 7 45.

    I have create a jar file containing gif icons files using this procedure:

    (1) create the jar file:

    set path = % path %; C:\Oracle\Middleware\Oracle_FRHome1\jdk\bin (my ORACLE_HOME/jdk)

    jar - cvf webfigolos.jar *.gif

    (2) self sign the file:

    c:\Oracle\Middleware\asinst_1\bin > sign_webutil.bat c:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    Jars is signed but with a warning:

    Generate a signature key certificate aaosa2015 = auto...

    keytool error: java.lang.Exception: key pair not generated, al alias < aaosa2015 >

    loan is

    .

    There are errors or warnings while generating a self signed certificate. Pleas

    e revisiting.

    .

    Backup as c: C:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    \Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar.old...

    1 file (s) copied.

    Signature using ke c:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    y = aaosa2015...

    .. own made.

    But I can use this file. The application crashes and get this error from the java console:

    network: connection http://myluism-pc:7001/forms/lservlet; jsessionid = p98GTL5Fh6XnQcykySBhLWq2823HwHlPGZ16TYHVv93006N4mmdl!-947562687 with proxy = LIVE

    network: connection http://myluism-PC:7001 / with proxy = LIVE

    Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: oracle/ewt/laf/basic/SelColorChange

    at oracle.ewt.laf.oracle.OracleTreeUI.createItemPainter (unknown Source)

    at oracle.ewt.laf.basic.BasicTreeUI._getItemPainter (unknown Source)

    at oracle.ewt.laf.basic.BasicTreeUI.getItemPainter (unknown Source)

    at oracle.ewt.dTree.DTreeBaseItem.getSize (unknown Source)

    at oracle.ewt.dTree.DTree.paintCanvasInterior (unknown Source)

    at oracle.ewt.EwtComponent.paintInterior (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter._paintInterior (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter.paintExtents (unknown Source)

    at oracle.ewt.lwAWT.LWComponent._paintComponent (unknown Source)

    at oracle.ewt.lwAWT.LWComponent.paint (unknown Source)

    at oracle.ewt.EwtComponent.paint (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter.paintExtents (unknown Source)

    at oracle.ewt.lwAWT.LWComponent._paintComponent (unknown Source)

    This used to be a very simple procedure, but it has stopped working...!

    Don't know if the jar file is well born, or if it is corrupt.

    I can't start my application.

    Help, please!

    Best regards, Luis.

    Try again with the JRE 7 10 update, I get a problem with the update of JRE 7 45, but when I tried the update of JRE 7 10, it works fine.

    For the objective test, disable the check

    Java Panel-> advance-> mixed Code-> disable verification (unchecked)

  • EM fails to start with NoClassDefFoundError: HTTPClient/ProtocolNotSuppExce

    New installation of Fusion Middleware 11 g on HP - UX 64-bit Itanium running VMWare on top. It is that the application of the EM fails to start, to starting AdminServer and when tried to start manually.

    Caused by: java.lang.NoClassDefFoundError: HTTPClient/ProtocolNotSuppException
    at oracle.sysman.eml.app.ContextInitializer.contextInitialized(ContextInitializer.java:1035)
    to weblogic.servlet.internal.EventsManager$ FireContextListenerAction.run (EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    ............

    Anyone has any advice on what could be the cause? What particular type of communication happens while EM start which might be unique to it?

    Additional details-

    Installs on existing Windows 11g works without problems.

    On the installation of the HP - UX system, it is the only symptom of problems so far. Can deploy and start the user applications, Console can start and stop the servers. No other symptoms or error messages identified yet.

    EM app remains the failure State.

    Have uninstalled/reinstalled several times, tried other instances of VMWare and without success. Same behavior each installation. Have wittled to rudimentary installation for MS, so little additional choices to muddy the waters.

    WebLogic generic installation pot take all default values
    AppDev install generic zip taking all default settings
    Run the config for the new domain, changing AdminServer to add EM, which includes the JRFs
    Run setNMProps.sh 1 time and then run startNodeManager.sh, which opens with no problem
    Run startWebLogic.sh


    Problem occurs on the first boot of the server admin and any attempt to launch the application of the EM.

    Tried uping the settings with settings such as 1536 for main memory and 512 for permgen. Changes which have occurred in the startup file. But does not change the problem or behavior.

    WebLogic Debug traces did not give me more clues. HTTP calls to get all the resources for EM appear before this failure without problems. The last one that appears is the resource get enemy consoleConfig.xml. On all types of tracks, there seems to be a wait several seconds between the last trace message and failure messages, as if he expected a response from something.

    [# < 11 March 2010 12:26:43 PM CST > < Debug > < Http > < uspls111 > < AdminServer > < ExecuteThread [ASSET]: '0' for the queue: '(self-adjusting) weblogic.kernel.Default' > < < < > anonymous > > <>< 1268350003075 > < BEA-000000 > < ServletContext@1471358173[app:em module: / path em: / em spec-version: 2.5] getResourceAsStream() invoked for: /WEB-INF/config/consoleConfig.xml >
    [# < 11 March 2010 12:26:43 PM CST > < Debug > < Http > < uspls111 > < AdminServer > < ExecuteThread [ASSET]: '0' for the queue: '(self-adjusting) weblogic.kernel.Default' > < < < > anonymous > > <>< 1268350003077 > < BEA-000000 > < ServletContext@1471358173[app:em module: / path em: / em spec-version: 2.5] getResourceAsSource() invoked for: /WEB-INF/config/consoleConfig.xml >
    # < 11 March 2010 12:26:47 PM CST > < WARNING > < HTTP > < uspls111 > < AdminServer > < ExecuteThread [ASSET]: '0' for the queue: '(self-adjusting) weblogic.kernel.Default' > < < WLS Kernel > > <><>< 1268350007978 > < BEA-101162 > < oracle.sysman.eml.app.ContextInitializer listener has not defined by user: java.lang.NoClassDefFoundError: HTTPClient/ProtocolNotSuppException.



    There was a thread OTN showing same error but with "Production" Mode and solved by enabling SSL on the administration server. This question is "Development Mode" but enabled SSL, without resolution. Noted that clearances HTTPS appear in newspapers after the EM localization for start-ups. Retried after start EM and still the same error.

    Published by: user8755985 on March 16, 2010 16:07

    Hello

    Include in DOMAIN_HOME/bin/setDomainEnv.sh after line 473:

    # ADDED MANUAL

    POST_CLASSPATH="${SOA_ORACLE_HOME}/Oui/jlib/lib/HTTP_Client.jar${CLASSPATHSEP}${POST_CLASSPATH}.
    export POST_CLASSPATH

    EX:

    export POST_CLASSPATH

    # ADDED MANUAL

    POST_CLASSPATH="${SOA_ORACLE_HOME}/Oui/jlib/lib/HTTP_Client.jar${CLASSPATHSEP}${POST_CLASSPATH}.
    export POST_CLASSPATH

    If ["${DATABASE_CLASSPATH}"! = ""]; then

    TKS

  • BlackBerry Smartphones support with upgrade to OS5 on curve 8520

    Hi all

    I use an unlocked bb curve 8520 version and want to upgrade my bb device os to v5.0. (current version - 4.6.1)

    I tried to use the application on the site of bb loader (NA & India both), but it tells me that my OS is updated and I will advise if there are updates available. I would be really grateful if someone could help me to update my operating system.

    Hello

    Your warranty is not threatened. You are free to use any bundle of BONES of carriers on your BB. However, your carrier may refuse to provide assistance (including the warranty/service evaluation) until drop back you to their level supported device operating system. But your guarantee in itself is not threatened.

    Good luck!

  • Problem with BB App World blackBerry Smartphones

    When I try to access it displays a message ' Eception exception: Java.lang.NoClassDefFoundError ".

    I also lost Blacberry bridge and have no communication with my Playbook. Any help?

    One solution is to downgrade your AppWorld.

    First, remove your AppWorld course Options > device > Applications

    (or on OS5, Options > Advanced > Applications).

    Then, using your BlackBerry browser, navigate to this link for your operating system level:

    BlackBerry App World v3.0.1.29 [OS7]
    BlackBerry App World v3.0.1.29 [OS6]
    BlackBerry App World v3.0.1.29 [OS5]

Maybe you are looking for

  • CTRL + Windows modifies the menus of iTunes randomly

    Whenever I press Ctrl + Windows + Arrowkeys to change the virtual desktops, the iTunes menu changes randomly. I have itunes as the only thing in my second office. Let's say I have the songs open tab which is what I always want on and I press Ctrl + W

  • Re: Qosmio G20 makes "scratching" and swirling sounds

    Hello My laptop is now doing "scratch" and swirling noise. Scratching noise sounds like something a little unbalanced. This happens not all the time, but when he does he will continue for hours. Nothing seems to be a problem with the operation of the

  • Sounds in Mail - do stop!

    I disabled the sound notifications to my email in preferences, but it continues to bonk when comes a new email and whoosh when are sent.  How can I silence?

  • Set up test environment for 8.6 CUCM

    We currently have CUCM 6.1.5 and it is expandable to 8.6.  I want to set up a test environment for our 6.1.5 of the migration on the database to 8.6 for the test.  However, when I go to download/order the product upgrade tool software it states that

  • HP officejet 6500 wireless with mac os 10.5.8

    I recently bought a hp officejet 6500 wireless which is supposed to be supported by mac os 10.5.8 leopard.  everything works except the scanner.  I tried to uninstall and reinstall the drivers several times and still nothing.  I was on the phone with