MenuItem - NoClassDefFound error

Hello

I am trying to add a MenuItem to my project:

protected void makeMenu (menu Menu, for example int) {}

super.makeMenu (menu, for example);

menu. Add (new MyMenuItem());

}

class MyMenuItem extends MenuItem {}

{MyMenuItem()}

Super (new StringProvider ('menu option text'), 100000, 0);

}

}

but when I click on the Menu button I get NoClassDefFound

Thank you

5.0.0 has a MenuItem constructor that takes a StringProvider. Which was introduced only 6.0.0. That means you're probably compile to 6.0.0 and running on 5.0.0 what you shouldn't do.

Tags: BlackBerry Developers

Similar Questions

  • How to add the JSON.jar file in bb OS 4.5?

    Hi all

    I have a problem in the analysis of a json file in BlackBerry os 4.5 and 5.0. I added the JSON.jar file in my project. I am trying to execute that project throws "Eception Exception: java.lnag.NoClassDefFound Error". I think that the jar file does not work correctly. How to solve this problem?

    Thank you

    Yes, add org folder to the source of your application.

  • Check the classpath

    In a document the performance of coldfusion and java (from 2002), I read that sometimes the admin can show the wrong way, does anyone know if in its latest versions never happens? I get a noClassDefFound error that is usually caused by an incorrect classpath, but the file is illustrated in the CF admin... I was wondering if its possible that what is shown in the admin, is perhaps not quite right... (hope actually)

    Thanks as always!
    Tal

    The CF Admininstrator screen does not always display some of the built-in settings. Check the following file. Beware, if you plan to edit the configuration file is first of all a copy backup!
    http://KB.Adobe.com/selfservice/viewContent.do?externalId=3cfc90d9&sliceId=2

  • Oracle Internet Directory Config error Linux x 64 java.lang.NoClassDefFoundE

    Hello

    I'm configuration (v11.1.1.2) identity management product, the installation was very well made. I started to configure it using the config.sh script. I chose to create a new weblogic domain and selected to configure OID and OVD.

    I am running Red hat linux 5.4 x 64 bit OS.

    I gave all the parameters configuration, such as requested and if failure at the stage where it creates the Oracle Internet Directory store with the error in the log below:
    [2011-02 - 02T 18: 20:29.969 + 00:00] [as] [TRACE] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] [SRC_CLASS: oracle.as.idm.install.config.event.IdMProvisionEventListener] [SRC_METHOD: onConfigurationStatus] [OOB IDM EVENT CONFIG] onConfigurationStatus-> ab274dda-a540-4666-bc1b-9d367b26b3b9 StatusMsg: {0} creation ASComponent.
    [2011-02 - 02T 18: 20:29.969 + 00:00] [as] [NOTIFICATION] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] reportStartConfigAction: EXIT...
    [2011-02 - 02T 18: 20:29.969 + 00:00] [as] [NOTIFICATION] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] beginning to create the component
    [2011-02 - 02T 18: 20:30.057 + 00:00] [as] [NOTIFICATION] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] Action for the oid1 is to CREATE
    [2011-02 - 02T 18: 20:30.057 + 00:00] [as] [NOTIFICATION] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] trying to create the oid1 component
    [2011-02 - 02T 18: 20:30.447 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] OID onCreate... [[

    ]]
    [2011-02 - 02T 18: 20:30.466 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] not a DB CARS: 10.23.74.119:1521:RMG
    [2011-02 - 02T 18: 20:30.467 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] DB connection string: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=10.23.74.119) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = RMG)))
    [2011-02 - 02T 18: 20:30.885 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] SCHEMA_VERSION_REGISTRY Control Panel...
    [2011-02 - 02T 18: 20:30.894 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] Version of the schema OID: 11.1.1.3.0
    [2011-02 - 02T 18: 20:30.911 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] Num of OIDs: 1
    [2011-02 - 02T 18: 20:31.029 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] TO validate input parameters
    [2011-02 - 02T 18: 20:31.097 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] Ports: nonssl = 3060 ssl = 3131
    [2011-02 - 02T 18: 20:31.097 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] directory specific OID creating
    [2011-02 - 02T 18: 20:31.098 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] JPS Files already exist: oracle.as.config.ProvisionException: Dest file (/ opt/oracle/middleware/asinst_1/config/JPS/jps-config-jse.xml) already exists.
    [2011-02 - 02T 18: 20:31.098 + 00:00] [as] [NOTIFICATION] [] [oracle.as.config] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] files already exist: oracle.as.config.ProvisionException: Dest file (/ opt/oracle/middleware/asinst_1/config/JPS/system-jazn-data.xml) already exists.
    [2011-02 - 02T 18: 20:31.674 + 00:00] [as] [ERROR] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000Irb_0ZpFw000jzwkno1DIOnZ000003, 0] []
    java.lang.NoClassDefFoundError: oracle/security/xmlsec/util/Base64
    to oracle.security.jps.internal.common.util.JpsCommonUtil. < clinit > (JpsCommonUtil.java:212)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:155)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:166)
    to oracle.iam.management.oid.install.wls.OIDComponentHelper$ 1.run(OIDComponentHelper.java:396)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.iam.management.oid.install.wls.OIDComponentHelper.setCredInCSF(OIDComponentHelper.java:389)
    at oracle.iam.management.oid.install.wls.OIDComponentHelper.setPasswdsInCSF(OIDComponentHelper.java:361)
    at oracle.iam.management.oid.install.wls.OIDComponent.onCreate(OIDComponent.java:177)
    at oracle.as.config.impl.OracleASComponentBaseImpl.createComponent(OracleASComponentBaseImpl.java:596)
    at oracle.as.config.impl.OracleASComponentBaseImpl.create(OracleASComponentBaseImpl.java:105)
    at oracle.as.provisioning.fmwadmin.ASComponentProv.createComponent(ASComponentProv.java:144)
    at oracle.as.provisioning.fmwadmin.ASComponentProv.createComponent(ASComponentProv.java:73)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv._createComponent(ASInstanceProv.java:401)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv.createComponent(ASInstanceProv.java:358)
    at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstanceAndComponents(ASInstanceProv.java:136)
    at oracle.as.provisioning.engine.WorkFlowExecutor._createASInstancesAndComponents(WorkFlowExecutor.java:525)
    at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:441)
    at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
    at oracle.as.idm.install.config.IdMDirectoryServicesManager.doExecute(IdMDirectoryServicesManager.java:861)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: oracle.security.xmlsec.util.Base64
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionClassLoader.loadClass(StandardConfigActionClassLoader.java:75)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

    Help, please.

    If necessary, I can post the full log... but his very large... So just post newspapers around the error message...

    Published by: 833360 on February 2, 2011 10:59

    Hello

    Few things to check.

    What is the JDK/JRE Version.
    What is the version of WLS?
    From the error lines, I can see THAT RCU Version is 11.1.1.3.

    If the WLS version is 10.3.3, so it is not supported with IDM 11.1.1.2.

    Suggestions: update IDM to 11.1.1.3 and configure it. Here are the steps.

    -Cancel the Configuration Wizard, delete the directories of domain Instance ACE and WebLogic OR if it's on the virtual machine, you can return to the previous snapshot.
    -Update IDM in 11.1.1.3
    -Execute config.cmd or confg.sh

    Let me know the result.

    Thank you
    GK

  • Java.lang.NoclassDefFound URI:/OA_HTML/AppsLocalLogin.jsp Exception error

    Hello

    Users get error java.lang.NoclassDefFoundError ask URI:/OA_HTML/AppsLocalLogin.jsp Exception, when they try to connect to the EBS,

    They have cleared Cache at the browser level and cleared Cache Jinitiator, what I need to check anything else

    Version of the EBS is: 11i.
    OS: Linux

    Danny,

    There have been changes recently?

    You will find all the details on the error in the data/Apache log files?

    Please stop Apache, clear the server cache, start Apache and check again.

    You can also check (Note: 455366.1 - NoClassDefFoundError studies in e-business Suite 11i when users Login) and see if it helps.

    Kind regards
    Hussein

  • Windows Update error error number: 0x80072EFF

    I think windows update error error number: 0x80072EFF by updating my PC. I am also getting Generic Host Process error and after I get one that I get a few redirects and a lot of functional point of view.

    I tried all the solutions for the process generic host for win32 services has encountered a problem of error and none have worked.

    HIJackThis log

    Logfile of Trend Micro HijackThis v2.0.4
    Scan saved at 15:34:27, on 12/29/2010
    Platform: Windows XP SP3 (WinNT 5.01.2600)
    MSIE: Internet Explorer v8.00 (8.00.6001.18241)
    Boot mode: Normal

    Ongoing process:
    C:\WINDOWS\System32\smss.exe
    C:\WINDOWS\system32\winlogon.exe
    C:\WINDOWS\system32\services.exe
    C:\WINDOWS\system32\lsass.exe
    C:\WINDOWS\system32\svchost.exe
    c:\Program Files\Microsoft Security Essentials\MsMpEng.exe
    C:\WINDOWS\system32\spoolsv.exe
    C:\Program Files\Java\jre6\bin\jqs.exe
    Files\Fichiers Files\Motive\McciCMService.exe C:\Program
    c:\Program Files\Fichiers SharedCOM Shared\9.0\SharedCOM\RoxWatch9.exe
    c:\Program Files\Fichiers SharedCOM Shared\9.0\SharedCOM\RoxMediaDB9.exe
    C:\WINDOWS\Explorer.exe
    C:\WINDOWS\RTHDCPL. EXE
    C:\WINDOWS\system32\igfxtray.exe
    C:\WINDOWS\system32\hkcmd.exe
    C:\WINDOWS\system32\igfxpers.exe
    C:\WINDOWS\system32\igfxsrvc.exe
    C:\Program Files\Verizon\McciTrayApp.exe
    C:\Program Files\Fichiers Java Update\jusched.exe
    C:\Program Files\Microsoft Security Essentials\msseces.exe
    C:\Windows\System32\svchost.exe
    C:\Program Files\Messenger\msmsgs.exe
    C:\WINDOWS\system32\ctfmon.exe
    C:\Program Files\Mozilla Firefox\firefox.exe
    C:\Program Files\Mozilla Firefox\firefox.exe
    C:\WINDOWS\system32\dwwin.exe
    C:\Windows\System32\svchost.exe
    C:\Program Files\Mozilla Firefox\firefox.exe
    C:\Program Files\Mozilla Firefox\firefox.exe
    C:\WINDOWS\system32\wuauclt.exe
    C:\WINDOWS\system32\msiexec.exe
    C:\Program Trend Micro\HiJackThis\HiJackThis.exe

    R0 - HKCU Software Microsoft Internet Explorer Main, Start Page = http://www.yahoo.com/
    R1 - HKLM Software Microsoft Internet Explorer Main, Default_Page_URL = http://go.microsoft.com/fwlink/?LinkId=69157
    R1 - HKLM Software Microsoft Internet Explorer Main, Default_Search_URL = http://go.microsoft.com/fwlink/?LinkId=54896
    R1 - HKLM Software Microsoft Internet Explorer Main, Search Page = http://go.microsoft.com/fwlink/?LinkId=54896
    R0 - HKLM Software Microsoft Internet Explorer Main, Start Page = http://go.microsoft.com/fwlink/?LinkId=69157
    F2 - REG: UserInit = userinit.exe
    O2 - BHO: AcroIEHelperStub - {18DF081C-E8AD-4283-A596-FA578C2EBDC3} - C:\Program Files\Fichiers Files\Adobe\Acrobat\ActiveX\AcroIEHelperShim.dll
    O2 - BHO: Verizon SMB Toolbar - {A057A204-BACC-4D26-DFC4-79A09BF76BC9} - C:\PROGRA~1\vzsmbtb\vzsmbtb.dll
    O2 - BHO: Google Toolbar notify BHO - {AF69DE43-7D58-4638-B6FA-CE66B5AD205D} - C:\Program Files\Google\GoogleToolbarNotifier\5.1.1309.3572\swg.dll
    O2 - BHO: Java (TM) plug-in 2 SSV Helper - {DBC80044-A445-435b-BC74-9C25C1C588A9} - C:\Program Files\Java\jre6\bin\jp2ssv.dll
    O2 - BHO: JQSIEStartDetectorImpl - {E7E6F031-17CE-4C07-BC86-EABFE594F69C} - C:\Program Files\Java\jre6\lib\deploy\jqs\ie\jqs_plugin.dll
    O3 - Toolbar: Verizon SMB Toolbar - {A057A204-BACC-4D26-DFC4-79A09BF76BC9} - C:\PROGRA~1\vzsmbtb\vzsmbtb.dll
    O4 - HKLM\... \Run: [RTHDCPL] RTHDCPL. EXE
    O4 - HKLM\... \Run: [Alcmtr] ALCMTR. EXE
    O4 - HKLM\... \Run: [IgfxTray] C:\WINDOWS\system32\igfxtray.exe
    O4 - HKLM\... \Run: [HotKeysCmds] C:\WINDOWS\system32\hkcmd.exe
    O4 - HKLM\... \Run: [persistence] C:\WINDOWS\system32\igfxpers.exe
    O4 - HKLM\... \Run: [Verizon_McciTrayApp] "C:\Program Files\Verizon\McciTrayApp.exe".
    O4 - HKLM\... \Run: [SunJavaUpdateSched] "C:\Program Files\Fichiers Java Update\jusched.exe"
    O4 - HKLM\... \Run: [MSSE] "c:\Program Files\Microsoft Security Essentials\msseces.exe" - hide - runkey
    O4 - HKLM\... \Run: [adobe Reader Speed Launcher] "C:\Program 9.0\Reader\Reader_sl.exe Adobe."
    O4 - HKLM\... \Run: [adobe ARM] "C:\Program Files\Fichiers Files\Adobe\ARM\1.0\AdobeARM.exe".
    O4 - HKCU\... \Run: [MSMSGS] "C:\Program Files\Messenger\msmsgs.exe" / background
    O4 - HKCU\... \Run: [ctfmon.exe] C:\WINDOWS\system32\ctfmon.exe
    O8 - Extra context menu item: E & xport to Microsoft Excel - res: / / C:\PROGRA~1\MICROS~2\Office12\EXCEL. EXE/3000
    O9 - Extra button: send to OneNote - {2670000A-7350-4f3c-8081-5663EE0C6C49} - C:\PROGRA~1\MICROS~2\Office12\ONBttnIE.dll
    O9 - Extra 'Tools' menuitem: S & end to OneNote - {2670000A-7350-4f3c-8081-5663EE0C6C49} - C:\PROGRA~1\MICROS~2\Office12\ONBttnIE.dll
    O9 - Extra button: research - {92780B25-18CC-41C8-B9BE-3C9C571A8263} - C:\PROGRA~1\MICROS~2\Office12\REFIEBAR. DLL
    O9 - Extra button: (no name) - {e2e2dd38-d088-4134-82b7-f2ba38496583} - C:\WINDOWS\Network Diagnostic\xpnetdiag.exe
    O9 - Extra 'Tools' menuitem: @xpsp3res.dll,-20001 - {e2e2dd38-d088-4134-82b7-f2ba38496583}-C:\WINDOWS\Network Diagnostic\xpnetdiag.exe
    O9 - Extra button: Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe
    O9 - Extra 'Tools' menuitem: Windows Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe
    Ø16 - DPF: {01113300-3E00-11D2-8470-0060089874ED} (Support.com Configuration class) - https://activatemydsl.verizon.net/sdcCommon/download/DSL/Verizon%20High%20Speed%20Internet%20Installer.cab
    Ø16 - DPF: {05D44720-58E3-49E6-BDF6-D00330E511D3} (StagingUI Object) - http://zone.msn.com/binFrameWork/v10/StagingU

    He did had a System Tools 2011 virus that seems to have disappeared. But also, which took place on 12/24. It seemed to have disappeared, but it has problems since.

    Please see step 22 and 23 here like system tools is known for manipulating the hosts file:Remove System Tool

    Once your hosts file is OK, then strongly suggest , using Internet Explorer, you have the system scanned from here:
    OneCare Protection scanner

    NOTE: I see that you have several threads going about this infected system. The only that this system can never be approved again is at each startup of a Linux-based rescue CD or to do a clean install of Windows.

    Kaspersky offers such a rescue CD is well to clean heavily infected systems as the hard drive is not Active when the system is booted from the CD -Kaspersky Rescue Disk 10

    Expert MowGreen Windows IT Pro - consumer safety

  • Browserfield generates the internal server error

    Hello

    I've implemented an example usage of the guide on this link and its working quite right, but then I saw something. If I click on a link within the browserfield to a non html resource, say mp3 for example http://site.com/file.mp3 or the server redirects or a survey non - response to the browserfield html, I get an internal server error.

    I tried the same in the native browser and everything works fine.

    So I think, it is possible to intercept a request when the user clicks on a link and open the native browser instead when a particular url scheme is detected?

    In addition, im having trouble changing the user-agent the browserfield, here is what Ive wrote

    ===========

    BrowserFieldConfig config = new BrowserFieldConfig();
    config.setProperty (BrowserFieldConfig.VIEWPORT_WIDTH, New Integer (Display.getWidth ()));
    config.setProperty (BrowserFieldConfig.INITIAL_SCALE, new Float (1.0));
    config.setProperty (BrowserFieldConfig.USER_SCALABLE, Boolean.FALSE);
    config.setProperty (BrowserFieldConfig.ENABLE_COOKIES, Boolean.TRUE);
    config.setProperty (BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE);
    config.setProperty (BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);
    config.setProperty (BrowserFieldConfig.USER_AGENT, "MyCustomUAString");

    BrowserField browserField = new BrowserField (config);

    ==============

    Also, I would also like to be able to hide the Progress bar when the browserfield does not load any page, so that it shows only when it is needed (IE when a link is clicked)

    Thank you

    A code example.  If you can't understand what it is supposed to do, please ask. Put shaped went squiffy, sorry about that.

    BTW, I really struggle to test BrowserField treatment on simulators, they seem flaky and sometimes I can't debug.  The one I usually use is actually a 5.0 OS simulator 9300.

    / public final class BrowserFieldScreen extends screen

    implements BrowserFieldConnectionManager {}

    Private BrowserField _bf2;

    Private BrowserFieldConnectionManager standardBFConnectionManager;

    public BrowserFieldScreen() {}

    Super();

    _bf2 = new BrowserField();

    This.Add (_bf2);

    our ConnectinManager hook

    standardBFConnectionManager = _bf2.getConnectionManager ();

    BrowserFieldConfig bfconfig = _bf2.getConfig ();

    bfconfig.setProperty (BrowserFieldConfig.CONNECTION_MANAGER, this);

    _bf2.requestContent ("http://www.google.co.uk");

    }

    Implementation of the BrowserFieldConnectionManager

    public InputConnection makeRequest (application BrowserFieldRequest) {}

    String requestURL = request.getURL ();

    System.out.println ("request:" + requestURL);

    Boolean toBrowser = false;

    If {(requestURL.endsWith ("mp3"))

    toBrowser = true;

    }

    If (requestURL.indexOf ("bbc.co.uk") > 0) {}

    toBrowser = true;

    }

    If {(toBrowser)

    Private browserSess = Browser.getDefaultSession ();

    If (! requestURL.startsWith ("http")) {}

    requestURL = "http://" + requestURL;

    }

    browserSess.displayPage (requestURL);

    String codehtmla =

    "" +

    "


    View in browser

    " +

    "";

    return new BrowserFieldResponse (requestURL, htmlToDisplay.getBytes (), HttpProtocolConstants.CONTENT_TYPE_TEXT_HTML);

    }

    try {}

    Return standardBFConnectionManager.makeRequest (request);

    } catch (Exception e) {}

    System.out.println ("Exception:" + try ());

    }

    String codehtmla =

    "" +

    "


    Exception

    " +

    "";

    return new BrowserFieldResponse (requestURL, htmlToDisplay.getBytes (), HttpProtocolConstants.CONTENT_TYPE_TEXT_HTML);

    }

    BackMenuItem MenuItem = new MenuItem ("Back", 110, 10) {}

    public void run() {}

    _bf2. Back();

    }

    };

    ForwardMenuItem MenuItem = new MenuItem {("Forward", 110, 10)

    public void run() {}

    _bf2. Forward();

    }

    };

    protected void makeMenu (menu Menu, for example int) {}

    If (_bf2.getHistory () .canGoBack ()) {}

    menu. Add (backMenuItem);

    menu.setDefault (backMenuItem);

    }

    If (_bf2.getHistory () .canGoForward ()) {}

    menu. Add (forwardMenuItem);

    menu.setDefault (forwardMenuItem);

    }

    }

    }

  • Run the error!

    Hi all.

    I have this code, everything works fine, after I clicked on btnSend an email is sent to the e-mail address specified, a runtime error is thrown? no help... This is the code...

    class Lesson2Screen extends screen implements {FieldChangeListener}
    ButtonField btnSubmit = new ButtonField ("Accept");
      
     
     
    ' Public Sub fieldChanged (field field, int context)
    {
    if(Field == btnSubmit) {}
    Invoke.invokeApplication (Invoke.APP_TYPE_MESSAGES, new MessageArguments (MessageArguments.ARG_NEW, eTo.getText () + "Accept", eSubject.getText (), eBody.getText ()));
    }
    if(Field == btnSend) {}
    sendMail (eTo.getText (), eSubject.getText () +"reject", eBody.getText ());
              
    }
    }
      
    ButtonField btnSend = new ButtonField ("Reject");
       
    MyMenu MenuItem = new MenuItem ("my Menu!", 1, 100) {}
    public void run() {}
    Dialog.Alert ("you clicked on my Menu!");
    }
    };
       
       
    LabelField topLabel = new LabelField ("' * confirm or deny the *", LabelField.FIELD_HCENTER ") {}
    {} public void paint (Graphics graphics)
    graphics.setColor (0x00AA0099);
    Super.Paint (Graphics);
    }
    };
       
    EditField eTo = new EditField ("to: j.f","@cmo.com");
    EditField eSubject = new EditField ("object:", "I");
    EditField eBody = new EditField("Body:","");
       
    public Lesson2Screen() {}
    Super();
    LabelField title = new LabelField ("Create E-mail messages-everSuit");
           
    setTitle (title);
           
    Add (topLabel);        Add (new SeparatorField());
           
    Add (ETO);
    Add (eSubject);
    Add (eBody);
    Add (new SeparatorField());
           
    addMenuItem (myMenu);
    Add (btnSubmit);
    Add (btnSend);
    btnSubmit.setChangeListener (this);
    btnSend.setChangeListener (this);
    }
      
    ' Public Sub sendMail (String, String object, String body) {}
    try {}
                       
    Store is Session.getDefaultInstance () .getStore ();.
    Records file [] = store.list (Folder.SENT);
    Folder sentfolder = files [0];
                       
    Message msg = new Message (sentfolder);
                       
    ToList [] address = new address [1];
    toList [0] = new Address (to, to);
    msg.addRecipients (Message.RecipientType.TO, toList);
                       
                     
    msg.setSubject (subject);
    msg.setContent (body);
    Transport.Send (MSG);
    } catch (Exception e) {}
                         
    }
    }
           
    public boolean onClose() {}
           
    System.Exit (0);
    Returns true;
    }
    }

    Thanks man for interested... my problem is now solved with debuger

  • GetInstance code error - why?

    Can someone tell me what's wrong with this code? I have read javadocs and tutorials for the past 2 days, but can't get this simple menu item to work. On the line with the *, it returns this error:

    Several markers on this line
    -Token syntax error '. ', {expected results
    -Syntax error on token 'getInstance', identifier expected after this token

    Here is the code:

    Import net.rim.blackberry.api.invoke.Invoke;
    Import net.rim.blackberry.api.invoke.MessageArguments;
    Import net.rim.blackberry.api.mail.Message;
    Import net.rim.blackberry.api.menuitem.ApplicationMenuItem;
    Import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;
    Import net.rim.device.api.ui.container.MainScreen;

    public class Notes extends form {}

    MyMenuItem myMenuitem = new MyMenuItem (0);
    * ApplicationMenuItemRepository.getInstance (.addMenuItem)
    ApplicationMenuItemRepository.MENUITEM_EMAIL_VIEW, myMenuitem);
    }
           
    class MyMenuItem extends ApplicationMenuItem {}
    MyMenuItem (order int) {}
    Super (Order);
    }
            
    public Object execute (object context) {}
    Invoke.invokeApplication (Invoke.APP_TYPE_MESSAGES,
    new MessageArguments (MessageArguments.ARG_NEW_SMS));
            
    }
             
    public String toString() {}
    return to 'TEXT ';
    }
    }
    }

    Any help would be GREATLY appreciated!

    Il0 - thank you

  • Error trying to use custom BB card not found CommandHandler

    I get the error that the net.rim.device.api.Command.CommandHandler is not found when I try to add any type of code to my application to open a personalized card. I searched the api, this Board and all samples and still can't seem to find a way to make it work. Here is the latest version of the code I have:

        public class InvokeMapViewScreen
        {      
    
            InvokeMapViewScreen()
            {
    
                MenuItem viewMapItem = new MenuItem(new StringProvider("View Map") , 0x230010, 0);
                viewMapItem.setCommand(new Command(new CommandHandler()
                {
    
                    public void execute(ReadOnlyCommandMetadata metadata, Object context)
                    {
                        MapView mapview = new MapView();
                        mapview.setLatitude(38785101);
                        mapview.setLongitude(-90602145);
                        mapview.setZoom(3);
    
                        Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments(mapview));
                    }
    
                }));
    
                addMenuItem(viewMapItem);
            }
    
        }
    

    My application will not work, and I get the message error than CommandHandler not found. Does anyone have any ideas on how I can get this to work?

    Just take a glance at page 18 on http://docs.blackberry.com/en/developers/deliverables/1181/GPS%20and%20BlackBerry%20Maps%20Developme...

  • OS6 menu error

    I am currently checking the compatibility of my applications with OS 6 and I have a strange error with a menu.

    The code is pretty simple:

    Menu menu = new Menu();
    menu.add(new MenuItem("ThisTextIsRatherLongToTest", 200000, 1000) {
                public void run() {
                }
            });
    menu.show();
    

    The menu is displayed on the top right of the screen (even before), but the last letter of the longer text is outside the screen.

    I have attached a screenshot.

    I don't test it on a real device yet, only on the 9800 Simulator.

    someone else who has seen this problem or can reproduce it?

    I can confirm this bug.  Happens on all 6.0 released devices, not just the Simulator.

    I suggest to use the style "pop-up" menus that come with 6.0 instead of this feature (they can be invoked using the 5.0 code base).  Or you can add a lot of "empty space" in the name of the menu

  • Adding dynamic menuitems - how to make menuitem contextin the Run() method

    Hello

    I'm moving the name of the MenuItem to a routine that I call you inside the method public void run() I'm assocating with all the menu items. I get a compiler error complaining that I can't use the local variable objWorkflowStep.mstrName because it is not a constant.  Is there anyway to get the reference to context or menuitem in the run() method?

    menu. Add (new MenuItem (objWorkflowStep.mstrName, intOrdinal += 100, 10))
    {
    public void run()
    {
    UiApplication.getUiApplication (.pushScreen)
    (DoWorkflowTransitionScreen) new
    mobjAppointment,
    objWorkflowStep.mstrName));
    }
    });

    Thank you

    Hello

    Thanks for the help but that will not work either.

    The problem is that I add the multiple of these menuitems in a LOOP, all with the SAME sub main() {}. When the run() method is called it is unclear what alleged menuitem.

    I think I came up with a brute force solution. I'm going to flatten the loop, hard-code the Menu # as a parameter to my DoWork (...) function called within the run() function and store this menu # as a member of the objWorkflowStep object. This way my DoWork() function can loop through the vector of WorkflowStep objects and find the WorkflowStep with the id of the menu.

  • ObjectChoiceFIeld - RuntimeStore error

    When I run my program in the Simulator, I get a "ClassCastException.  I can't understand why...

    Here is the code:

            Integer choiceOne = new Integer(0);
            if(d != null && d instanceof Hashtable) {
                Data = (Hashtable) d;
                choiceOne = (Integer)Data.get("timeposition");
            }
            int ChoiceOne = 1;
            if(choiceOne != null) {
                ChoiceOne = choiceOne.intValue();
            }
    
            /* General Display Options */
            LabelField spacer = tmtth.labelGenOne(" ");
    
            /* Time Display Options */
            String topOrBottom[] = {"Top", "Bottom"};
            positionChoice = tmtth.choiceGenTwo("Time Position Display", topOrBottom, ChoiceOne);
    

    The error occurs after that I start my Save menuitem that is the following code:

                Hashtable hs = new Hashtable();
                RuntimeStore rs = RuntimeStore.getRuntimeStore();
                TellMeTheTimeHelper tmtth = new TellMeTheTimeHelper();
                hs.put("timeposition", positionChoice);
                rs.remove(HomeScreen.MY_DATA_ID_OPTIONS);
                rs.put(HomeScreen.MY_DATA_ID_OPTIONS, hs);
                tmtth.onClose();
    

    Cast you to integer first in the code block when you pull, it forms the hash table.

    choiceOne = (Integer)Data.get("timeposition");
    
  • MenuItem / JDE 4.5

    I created an app for JDE 4.7 and have managed to add menus using the following code:

    private class AboutScreen extends MainScreen {
        public AboutScreen() {
            super();
                setTitle(" About");
                LabelField about = new LabelField();
                about.setText("Some text");
                add(about);
        }
    }
    
    private MenuItem _aboutItem = new MenuItem("About", 110, 100) {
        public void run() {
            _aboutScreen = new AboutScreen();
            UiApplication.getUiApplication().pushScreen(_aboutScreen);
        }
    };
    
    private class HelpScreen extends MainScreen {
        public HelpScreen() {
            super();
            setTitle(" Help");
            LabelField about = new LabelField();
            about.setText("Some text");
            add(about);
        }
    }
    
    private MenuItem _helpItem = new MenuItem("Help", 120, 100) {
        public void run() {
            _helpScreen = new HelpScreen();
            UiApplication.getUiApplication().pushScreen(_helpScreen);
        }
    };
    
    //create a menu item for users to close the application
    private MenuItem _closeItem = new MenuItem("Close", 200000, 10) {
        public void run() {
            onClose();
        }
    };
    
    //override makeMenu to add the new menu items
    protected void makeMenu( Menu menu, int instance ) {
        menu.add(_aboutItem);
        menu.add(_closeItem);
        menu.add(_helpItem);
    }
    

    When I compile the same application using JDE 4.5, the application compiles without any problem. The application runs as well. However, when I select the menus I add (comments or help), I get a "JVM error 104 Eception: IllegalStateException. Once I click on continue, the menu screen appears however the labelField does not work.

    Can someone point me in the right direction? I am a new developer to learn the tricks of the trade. Look through the forums, I found nothing useful found in my particular case. I appreciate any input that helps me learn what I am doing wrong.

    I don't know what I thought when I started to fill a labelField with text and layout form then she. I should have used a RichTextField from the outset. I changed the labelField for RichTextFields in my two menu items and all is well. No more error JVM 104.

    When I said I'm new to application development, I really wanted to say that I am new to application development. I find that what I have learned in my classes of college only takes you so far. You must get your nose to the grindstone and write applications to get the experience to know what works and what does not work.

    In any case, I appreciate your comments as well as the entrance, I got Peter.

  • MenuItem to FileExplorer could not open the dialog box or PopupScreen.

    Hello

    I would like to know why I can't open a dialog box or a menuitem PopupScreen in file Explorer.

    The use of the debugger I see that there is no ancestral error and execution to get there in the Dialog.alert("").

    is there a solution?

    See this article.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

Maybe you are looking for

  • ICloud using photo library for the first time

    I am considering switching to iCloud photo library for the first time - mainly so I'll be able to use the new functionality of memories in iOS 10. However, I have quite a large library of Photos on my Mac and I'm worried about the mistakes of synchro

  • E-mail address / appear after answer / reply to all after update

    When I select reply or reply to all, the mail address / are to be sent automatically the answer don't. This behavior is seen after I installed the updated Thuderbird.

  • Installing WXP on Satellite L30 - 10Y

    Hi all I have a Satellite L30 - 10Y (PSL33E 03L031EN) (about 2 years), it is running Vista (installed come) and I'll replace it with XP pro SP3.I already have the drivers (from the Division of driver Toshiba), but I wonder if there are any issues tha

  • ICloud download duplicates if she tries to download a backup library on a new computer?

    General information I am running OS X El Capitan on my MacBook Pro. My current setup, I have the Photos.app using a library of Photos on an external HARD drive. The photo library is 136 GB and is synchronized with iCloud library where I have 200 b of

  • 6 do not DOWNLOAD GPS files

    I recently bought a 6 d, and everything was fine. I noticed that the battery was draining pretty quickly. Whenever I downloaded images I would be invited on GPS journal fles, I have accepted by download. After a week, I noticed that I had logs starti