×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    2

    Access denied when I try to access a jar file

    I'm trying to send a jar file via mms but when I try to access it, it returns me a message of 'access denied'. But when I try to reach an image in the same directory (and try to send it instead of sending the jar file), I can access it properly and mms is sent.
    I thought it could be a matter of permision or maybe I just need to sign my midlet. But I've already tried to self-sign it and it didn't work. I'm using JME in an E50.


    I get an error in this line:
    FileConnection fc = (FileConnection)Connector.open(path, Connector.READ);
    where 'path' are defined as:
    String path = System.getProperty(photos) + "Sokoban1609.jar";
    and 'photos' as:
    private String photos = "fileconn.dir.photos";

    I tried to reach my jar file in the photos directory, I don't know if there is any problem...

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: Access denied when I try to access a jar file

    I think (but am not sure and didn't check) that .jar files are not accepted/allowed as MMS content ( as per the MMS Conformance Document, if my memory serves me right; latest version probably somewhere on OMA, Open Mobile Alliance web site, http://www.openmobilealliance.org ).

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    2

    Re: Access denied when I try to access a jar file

    Petrib,

    Jar files (application) are acceptable in a MMS, MMS specification allows that (you have to use application/java-archive MIME type).

    Example: sony ericsson w200i receives it and installs it.

    So this is a fact (we've already tested it).

    My question is about sending it using a E50 (Symbian s60), is it possible to create a java (JME) app to send MMS (with .jar files attached) in a Nokia device (E50)? The major problem is that our jme application can't reach this kind of file (.jar) ....

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: Access denied when I try to access a jar file

    .Jar files in Nokia platforms are part of the Closed Content List (CCL), which specifies media which cannot be forwarded via MMS, Bluetooth, Infrared or e-mail.

    Therefore it's not possible to send them via MMS, either from the standard user interface or via Java ME.

    http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html appendix A for a list of files protected automatically.

    Please also note that self-signing midlets doesn't work on Nokia devices, either.

    Daniel
    Last edited by dcrocha; 2008-09-03 at 14:50. Reason: added info.

Similar Threads

  1. Theme Studio 3.1 not creating themes
    By zemm in forum Themes/Carbide.ui
    Replies: 11
    Last Post: 2008-10-18, 08:41
  2. Problem with pyobfuscate
    By JOM in forum Python
    Replies: 3
    Last Post: 2008-06-20, 22:47
  3. extracting midlet jar file
    By sumanbera in forum Mobile Java General
    Replies: 20
    Last Post: 2007-09-29, 08:34
  4. N80 Jar File limitation
    By thunder7553 in forum General Development Questions
    Replies: 2
    Last Post: 2006-09-29, 02:35
  5. reading text file from a jar file -> file not found!
    By iecomdev in forum Mobile Java General
    Replies: 1
    Last Post: 2002-09-30, 12:27

Posting Permissions

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