Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to Install Jar over internet / (http)

 
aan isnaini
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made a jar file, named abc.jar.

When I transfer this file to device (Nokia 3310, Nokia 6610, SonyEricsson K700) using data cable, the abc.jar is working properly. I mean file is known and installed normally then I can use the application.

But I try putting the file in some server (http://www.domainName.com/abc.jar) and I use application manager (in devices) to download the file and install, the file is �Unknown�.

What�s happen? Why?
Is this only use data cable to transfer and install the jar file?

Would you please help me?

Thank you,
 
Rashid Mayes
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should make certain that you have the correct mimetypes configured on the server.

text/vnd.sun.j2me.app-descriptor for jad files
application/java-archive for jar files

OTA will not work on some devices will not work unless the mime types are configured correctly.

Next, you can add the midlet install notify attribute to your jad file. This will allow the AMS to report an installation status to you server.

rashid
www.hostj2me.com
 
aan isnaini
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rashid, thank yoou very much for your help.

I was edited mime.types in apache directory.

the first time i try to open file through Device (Nokia) input url: "http://MyDomain.com/abc.jad" and there is working properly.
the device display information about: Application name, Size, Vendor, and version. then i just click "ok" button, then the display show the device is download application progress. afterward, the device system response is "Invalid File".

please help me.

Thank You
 
Punit Raizada
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my experience Nokia Handsets return Invalid file in the following cases.

- Your server doesnt have the valid mime type for jar files. (this works on some Nokia handsets)
- The jar size attribute in the jad file does not have the right value.
- The other required attributes (e.g Midlet-1 etc) are not the same in the jar manifest as in the jad file.

Does the phone give an error code along with the error message.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic