.Jar file creation | Telit Cinterion IoT Developer Community
March 23, 2020 - 10:21am, 1596 views
Hello good day. I want to update the equipment remotely. For that I need to download the ".jar" and ".jad" files. And I have a problem. All files are downloaded and created in memory without any problem. but the ".jar" files are not created. try to manually modify them, rename them from memory and it tells me access denied. I wanted to know if there is any way to enable this access. since for the remote update it is necessary to save this file in the memory.
passing the file from the pc to the modem is no problem, that is done well. the problem is to download the file from java, from a website and copy it to memory. since I don't have access to perform that action.
And if this is not possible, is there a way to remotely update the java midlet?
Thank you!
Hello,
It is a security feature (copy protection) for Java applications that prevents opening, reading, copying, moving or renaming of JAR files.
What you always can do is to create a file without jar extension, write to it, modify, read etc. and in the end rename it to jar file.
BTW there's OTAP feature available for remote updating of MIDlets - please see AT^SJOTAP command and Java user's Guide document for more information.
Regards,
Bartłomiej
Hello Bartłomiej,
If I imagined it would be a protection. and I had solved it that way, creating a ".txt" file, instead of a ".jar". I will evaluate the option in point 8 of the manual. Although I am not exactly clear about the message format. I will try and any questions will be sent. Thank you very much for your help.