aspose file tools*
The moose likes Java Micro Edition and the fly likes how to Install Jar over internet / (http) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how to Install Jar over internet / (http)" Watch "how to Install Jar over internet / (http)" New topic
Author

how to Install Jar over internet / (http)

aan isnaini
Greenhorn

Joined: Oct 22, 2005
Posts: 11
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

Joined: Jan 11, 2006
Posts: 160
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


Rashid Mayes
http://www.hostj2me.com/ - http://www.worlddeveloper.org/
aan isnaini
Greenhorn

Joined: Oct 22, 2005
Posts: 11
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

Joined: Mar 20, 2004
Posts: 156
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.


SCJP 1.4
Everything that can go wrong will go wrong -Murphy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to Install Jar over internet / (http)