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...
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, [url]http://www.openmobilealliance.org[/url] ).
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) ....
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.
[url]http://www.forum.nokia.com/info/sw.nokia.com/id/f269e8db-bb9b-4de8-9009-bb9c2ec810f2/DRM_Developers_Guide_for_Nokia_Devices_v3_0_en.pdf.html[/url] appendix A for a list of files protected automatically.
Please also note that self-signing midlets doesn't work on Nokia devices, either.
Daniel