Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2005

    Menu Items broken?

    I've been trying to port my application Frink ( http://futureboy.homeip.net/frinkdocs/ ) to the Series 80 devices. I've already ported to the Nokia 92xx series, and other handhelds. After all, it's Java, so porting should require almost no work, right?

    I've downloaded the Series 80 SDK but I'm not compiling with its Java compiler, just using the Java compiler I always use (1.4.2_07).

    I've also made a new manifest file and added it as the manifest to the Jar I already build:

    Manifest-Version: 1.0
    Main-Class: frink.gui.FullScreenAWTStarter
    PproApp-Name: Frink
    PproApp-Version: 3.1
    PproApp-Vendor: Alan Eliasen
    PproApp-Icon: data/futureboyicon.gif

    However, when running in the Emulator, I get an error:

    C:\prog\Symbian\7.0s\S80_DP2_0_PP_SDK\bin\emulator.exe -Xdevice:S80_DP2_0_PP_SDK
    -classpath c:\prog\frink\jar\series80.jar frink.gui.FullScreenAWTStarter
    Starting Series 80 Emulator
    Launching Personal Profile application
    ======== J9 2.2 Standard Output (Wed Mar 23 06:13:54 2005) ========
    ======== J9 2.2 Standard Error (Wed Mar 23 06:13:54 2005) ========
    Exception in thread "main" java.lang.UnsatisfiedLinkError: Unimplemented Native
    at com.ibm.oti.awt.metal.widgets.MenuPeer.nativeSetAccelerator(Native Method)
    at com.ibm.oti.awt.metal.widgets.MenuPeer.setAccelerator(Unknown Source)

    at java.awt.Menu._widgetSetAccelerator(Unknown Source)
    at java.awt.MenuItem.setAccelerator(Unknown Source)
    at java.awt.MenuItem._addNotify(Unknown Source)
    at java.awt.Menu._addNotify(Unknown Source)
    at java.awt.MenuBar._addNotify(Unknown Source)
    at java.awt.Frame._addNotify(Unknown Source)
    at java.awt.Component.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at java.awt.Window._show(Unknown Source)
    at java.awt.Component.show(Unknown Source)
    at java.awt.Window.show(Unknown Source)
    at java.awt.Component.show(Unknown Source)
    at java.awt.Component.setVisible(Unknown Source)
    at frink.gui.InteractivePanel.initializeFrame(Unknown Source)
    at frink.gui.FullScreenAWTStarter.main(Unknown Source)

    This indicates to me that Nokia didn't implement accelerators for Menu items? The native method for adding accelerator keys to menu items seems to have never been implemented!

    I've heard that the 9500 doesn't support numbers as accelerators, e.g, Ctrl-1 and Ctrl-2, but they say Ctrl-A works okay. I commented-out menu keys that add numerical accelerators, but I still get the same error.

    I also removed the code that attaches the menubar entirely, but I still get the same problem.

    This is a very simple GUI that runs in every other AWT that I've tried. Does anyone know why this doesn't work in the Nokia 80 series?

    Screenshots of what Frink looks like on other devices here:


  2. #2
    Registered User
    Join Date
    Mar 2005


    I guess nobody from Nokia reads these forums. It's a simple enough question... can you have accelerators in menu items?

    Or does this JVM not implement the Java AWT library completely? Is there a workaround?

  3. #3
    Registered User
    Join Date
    Mar 2003
    6129.87' N 2346.11' E (WGS84)
    Well, haven't tried the emulator, but in our app the accelerators work fine on the actual device...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts