Link to home
Start Free TrialLog in
Avatar of Heuer
Heuer

asked on

how do i enable my wap site to download games for nokia phone

i have uploaded the .jad and .jar files of the game but whenever i try to download it it will give me a file format unknown

attach below is my source code

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>  

<card id="menu" title="Java Games A-I">
<do type="prev" label="Back"><prev/></do>

<p align="center">
<b>Enjoy Your Downloads</b></p>
<p align ="left">

<br/><a href="Game/basquet.jad">Basquet</a>

</p>
</card>
</wml>
Avatar of BigRat
BigRat
Flag of France image

Have you got the mime-types installed for the jad/jar fles :-

The MIME type for a JAR file is application/java-archive.
The MIME type for the JAD file is text/vnd.sun.j2me.app-descriptor. This specifies the default character set to use (UTF-8) to convert the JAD file from its transport format to the correct MIDP Unicode-encoding.

http://info.borland.com/techpubs/jbuilder/jbuilder8/me/ota.html
Avatar of Heuer
Heuer

ASKER

i do not have control over the Apache server course its just a webspace for me to host the files can i install it in my webspace ?
No, Apache uses mime types out of its configuration directory and reads this at start up. You are going to have to talk to your system administrator to get the additional mimes installed. This is all a bit new to Apache of course, so these mimes will not yet be standard.
Avatar of Heuer

ASKER

I have gotten my host to add the MIME type for both the JAR and JAD to the cpanel but i still can't get it to work is there something wrong with my wml code?(oni the big2garden link is working)

This is a screenshot of wat i got instead of saving the file in a JAD format http://www.la-kopi.com/~mog/java.jpg

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd"> 
<wml>  

<card id="jgame" title="Java Games A-I">
<do type="prev" label="Back"><prev/></do>


<p align ="left">
<br/><a href="Game/big2garden.jad">Big 2 Garden</a>
<br/><a href="Game/bman.jad">Bomberman 1.08</a>
<br/>
<br/>
<br/>Check out our mobile forum @ http://chat.la-kopi.com/
<br/>Main homepage @ http://www.la-kopi.com/~mog/Webbie/index.htm

</p>
</card>
</wml>
ASKER CERTIFIED SOLUTION
Avatar of BigRat
BigRat
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well I got your question. The source code you attached is right no problem whatsoever. But did you check the cell phone as well. Does it support jad/jar files? has it got J2me capabilities.? Has it got support for OTA Provisionning?. Has it got downloadable applications option?
"....which is clearly the WRONG mime type. "

I've had no response to that! And MY site does NOT work with text/plain!
try using wapbuddy
www.jonroig.com