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">Ba squet</a>
</p>
</card>
</wml>
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">Ba
</p>
</card>
</wml>
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.
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">Bombe rman 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>
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"
<br/><a href="Game/bman.jad">Bombe
<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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!
I've had no response to that! And MY site does NOT work with text/plain!
try using wapbuddy
www.jonroig.com
www.jonroig.com
The MIME type for a JAR file is application/java-archive.
The MIME type for the JAD file is text/vnd.sun.j2me.app-desc
http://info.borland.com/techpubs/jbuilder/jbuilder8/me/ota.html