×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    4

    Question Problems starting an J2ME app installed via .sis file on 9300i

    Hi,

    I'm trying to build a .sis file for installing a J2ME application on Symbian OS phones. I'm testing on a Nokia Communicator 9300i.
    I know that I don't need to use a .sis file for .jar files. :-)

    Installation and deinstallation works fine, but I can't figure out how to run the installed application. Do I have to do any additional steps for putting an icon in the menus or register my .app and .aif files somehow with the OS?
    I can start other apps by running the appropriate .app file, but mine doesn't seem to work.

    Here is what I do:
    Using aifbuilder for building .aif, .app, .mbm and .txt files and makesis for building the .sis file from Nokia Series 80 SDK for C++.

    My .pkg file looks like this (XXXXXXXX == my app UID):

    ; Default language: American English
    &AM

    #{"Myapp"},(0xXXXXXXXX),1,3,7000,TYPE=SA

    ; Hardware dependency
    (0x101F8ED2), 0, 0, 0, {"Series80ProductID"}

    ; Certificate and key files used for signing
    *"cert\mykey.key","cert\mycert.cer"

    ; Application files
    "..\myapp.jad"-"!:\System\Apps\[XXXXXXXX]\myapp.jad"
    "..\myapp.jar"-"!:\System\Apps\[XXXXXXXX]\myapp.jar"

    ; Ressource files
    "res\myapp.aif"-"!:\System\Apps\[XXXXXXXX]\myapp.aif"
    "res\myapp.app"-"!:\System\Apps\[XXXXXXXX]\myapp.app"
    "res\myapp.txt"-"!:\System\Apps\[XXXXXXXX]\myapp.txt"
    "res\myapp.mbm"-"!:\System\Apps\[XXXXXXXX]\myapp.mbm"

    Any hints are appreciated. :-)

    Florian
    Last edited by fok; 2006-10-11 at 07:01.

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: Problems starting an J2ME app installed via .sis file on 9300i

    Hi Florian,
    Welcome to Forum Nokia.
    I guess you have posted this thread in the wrong section.this is meant for c++ developers. you would find another section related to Java and J2ME.
    Anyways,
    Once the application is been installed you would be able to find the icon in the menu's, there is no need to register .app or .aif files with the OS nor you dont have to perform additional steps.
    Usually the .aif file is mentioned in the .mmp file..why dont you go through an sdk example related to 80 series.It would help you better.

    Bst Regrdz

    Priju

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    1,980

    Re: Problems starting an J2ME app installed via .sis file on 9300i

    I think system can't install .jar via .sis file,J2ME MIDlet file has its own path.You'd better use Nokia PC suite,NDS or other software to install J2ME MIDlet.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    4

    Re: Problems starting an J2ME app installed via .sis file on 9300i

    @Priju:

    I asked here because .sis file creation is part of the C++ SDK and i don't believe there is a problem with the .jar as it installs and runs smoothly without using a .sis file. But maybe I should ask in the J2ME forum, too.

    I have no .mmp file because I am not developing with the SDK. I just want to wrap a complete application into an .sis file for distribution purposes.

    @r60600:

    Another way is no option for me. :-(
    I tried diffent paths (\System\MIDlets\[XXXXXXXX]\), too, but that wouldn't change anything.

    Thanx for your help.

    I'm wondering: When installing .jar files directly, the 9300i asks me in which menu the icon is to be put (Desktop, Office, Media, System). It doesn't ask me, when installing from my .sis file. Maybe there is something going wrong?

    Florian
    Last edited by fok; 2006-10-12 at 09:45.

  5. #5
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: Problems starting an J2ME app installed via .sis file on 9300i


  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    4

    Re: Problems starting an J2ME app installed via .sis file on 9300i

    Thanx, that link was excactly what I was looking for. :-)

    Unfortunately the 9300i behaves very strange: It recognizes the .jad file and launches the second installer instance but then complains about two simultaneous running instances of itself and refuses to install the midlet. Any way around that?
    Otherwise that method is of no use. What a pity... :-(

    Meanwhile I solved most of the problem above using my way to directly deploy the application by fixing the file names in my .pkg file:


    ; Default language: American English
    &AM

    #{"Myapp"},(0xXXXXXXXX),1,3,7000,TYPE=SA

    ; Hardware dependency
    (0x101F8ED2), 0, 0, 0, {"Series80ProductID"}

    ; Certificate and key files used for signing
    *"cert\mykey.key","cert\mycert.cer"

    ; Application files
    "..\myapp.jad"-"!:\System\MIDlets\[XXXXXXXX]\myapp.jad"
    "..\myapp.jar"-"!:\System\MIDlets\[XXXXXXXX]\myapp.jar"

    ; Ressource files
    "res\myapp.aif"-"!:\System\Apps\[XXXXXXXX]\[XXXXXXXX].aif"
    "res\myapp.app"-"!:\System\Apps\[XXXXXXXX]\[XXXXXXXX].app"
    "res\myapp.txt"-"!:\System\Apps\[XXXXXXXX]\[XXXXXXXX].txt"
    "res\myapp.mbm"-"!:\System\Apps\[XXXXXXXX]\[XXXXXXXX].mbm"


    Installation including the creation of an icon for running the application works now, but there is still one problem remaining: I can't start my app.
    I suspect the content of [XXXXXXXX].txt is wrong, even though it was created by aifbuilder. Looking into that right now. Any other possibilities of why starting fails?

    Florian

Similar Threads

  1. Carbide.vs problems generating AIF file
    By profoundwhispers in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-06-06, 08:51
  2. how to recreate .sis file in app
    By qiuhuimin in forum Symbian
    Replies: 3
    Last Post: 2004-09-08, 08:33
  3. J2ME Installing problems on 7650
    By rickyhaggett in forum Mobile Java General
    Replies: 6
    Last Post: 2003-04-29, 23:59
  4. can j2me midlet be packaged into .sis file?
    By ouseka in forum Mobile Java General
    Replies: 0
    Last Post: 2002-12-05, 06:22
  5. J2ME 7650 how to test app
    By shahzad73 in forum Mobile Java General
    Replies: 0
    Last Post: 2002-08-09, 13:06

Posting Permissions

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