You Are Here:

Community: Developer Discussion Boards

#1 Old .JAD file don't notify install - 2008-05-21, 17:08

Join Date: Sep 2007
Posts: 13
sandymc
Offline
Registered User
Dear all,

I've recently built my j2me application using netbeans, it produced .jar and .jad files. And i upload both of them to my website. When i tried to download the application by clicking on .jad file using my mobile phone browser.. it didn't notify install as its supposed to.. it only showed me the content of .jad itself without installing anything to my mobile phone.

Here is my .jad file:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
MIDlet-1: game,/vi/img/game.png,game
MIDlet-Jar-URL: http://gameurlhere
MIDlet-Vendor: game
MIDlet-Version: 1.0
MIDlet-Name: game
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.0
MIDlet-Jar-Size: 183220
Nokia-MIDlet-Category: Game

i've browser through the internet (the almighty google) and didn't find anything that could solve this problem.. so.. any help is appreciated :)
Reply With Quote

#2 Old Re: .JAD file don't notify install - 2008-05-21, 17:29

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Have you defined a correct MIME type for JAD files

Should be
text/vnd.sun.j2me.app-descriptor

Hartti
Reply With Quote

#3 Old Re: .JAD file don't notify install - 2008-05-21, 17:34

Join Date: May 2007
Posts: 347
Location: Mexico D.F
rdrincon's Avatar
rdrincon
Offline
Forum Nokia Expert
Hello sandymc

Just to add a little more information to what hartti says :)

Quote:
If you access the Web server containing your JAR and JAD files with your handset, you may find that the JAD file is delivered to the phone as only a text file with its contents displayed as normal text. This indicates that your Web server needs to be configured.

You need to associate specific MIME types to the ".jar" and ".jad" extensions so that the Web server can tell the client which kind of content to expect. In apache, you add the following two lines to the httpd.conf configuration file:


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

You then restart the server and point your handset to the URL where your .jad file resides.
Don't use absolute paths in the parameter: MIDlet-Jar-URL only the name of the jar file if this resides in the same folder.
Reply With Quote

#4 Old Re: .JAD file don't notify install - 2008-05-22, 05:55

Join Date: Sep 2007
Posts: 13
sandymc
Offline
Registered User
It works! Thanks alot to Hartti and rdrincon..

i found the "MIME types" on CPanel of my websites..

Thanks again :)
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic install through SIS file downloaded over WAP bigrio General Symbian C++ 2 2009-07-14 02:16
Help needed with a 3gp file... joedoe_1981 Streaming and Video 0 2007-07-18 19:58
Unable to install sis file v9.1 gheese General Symbian C++ 2 2006-08-08 13:27
Tips on using NDS 1.1 mitts Symbian Tools & SDKs 7 2006-01-18 17:07
MIDlet install on 6230i using .jad file Pug206Aid Mobile Java General 0 2005-08-10 15:36

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia