×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    Signing and setting UID of jar file

    Hi!

    I'm kind of new to Java.

    I've got a Jar file (myapp.jar) that is a basic "Hello World"-like application. Before installing it on the phone, does the application require to be signed?
    How does one set a specific UID for the application?

    I checked on the wiki, but it says :
    "A MIDlet can have a predefined UID attribute in the same way as native executables. Beginning from S60 3rd Edition, Feature Pack 2, this is accomplished using a new JAD/JAR manifest attribute Nokia-MIDlet-UID-<n>, where <n> stands for the MIDlet's number inside the MIDlet suite as with some other attributes."
    I am using a Nokia N73 (S60 Maintenance Release). Is there any way I can set the UID of the application to something specific? And if not, is there anyway to determine the UID of the application after it has been installed on the phone?

    Thanks
    Kedar
    Thanks
    Kedar

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Signing and setting UID of jar file

    It doesn't need to be signed, and it doesn't need to be given a UID. You can set the UID, but only (as the wiki says) on later versions of S60.

    Remember that a Java MIDlet is not a Symbian application, hence it doesn't need signing or a UID. The same JAR can be installed on Symbian 8 and Symbian 9, Series 40, Windows Mobile, Motorola phones, Sony Ericsson's proprietary platform, and so on.

    So far as determining the UID... I'm not sure, but I think you cannot (hence they added a feature to set it). However, there are some articles in the wiki about launching MIDlets from Symbian apps, which might tell you more.

    Graham.

  3. #3
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    Re: Signing and setting UID of jar file

    Thanks..

    Basically, I need to call a Java midlet from a Python script I have written. The calling function (laa module) calls the application using its uid. Hence, I was hoping I could find its UID somehow.

    Coming back to my question, if I have some UID's (protected range) from Symbian Signed, is there no way I can give my (Java) application those UID's?

    Kedar

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Signing and setting UID of jar file

    Only on 3rd FP2 and later. Otherwise, no.

    Graham.

  5. #5
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    Re: Signing and setting UID of jar file

    Quote Originally Posted by huaer123 View Post
    <spam message removed from here>
    Ok.. Totally not following

    Only on 3rd FP2 and later. Otherwise, no.
    One way to figure out the UID is to use the applist module in Python. Using this, I found the UID assigned to my Java midlet.
    Last edited by hartti; 2010-01-06 at 07:19. Reason: edited away reference to spam message

Similar Threads

  1. Trusted Application
    By damien_a in forum Mobile Java General
    Replies: 11
    Last Post: 2012-02-17, 20:49
  2. Need help with signing a midlet: something is wrong
    By Yuriy in forum Mobile Java General
    Replies: 8
    Last Post: 2008-11-30, 02:13
  3. Signing problem by ACS publisher id
    By aamitgupta in forum Symbian
    Replies: 2
    Last Post: 2007-10-25, 15:52
  4. Understanding of the complicated signing process
    By whitewinds in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 9
    Last Post: 2007-08-22, 07:10
  5. Carbide C++and self-signed sis file
    By jcxxr in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 11
    Last Post: 2006-08-07, 07:59

Posting Permissions

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