Hi all,
I don't know if this is the exact right place to ask, but with my
question being java related i guess it is a good starting point.
I have created a working jad/jar java game using j2me and have
successfully uploaded it to my cell phone using usb/ppp. However i'd
like to make the jad/jar combination available using a http server on
the internet.
I've found some information about this, and i think i have almost made
it work. But i've not completely got it right just yet. And so far
i've spent 10+ euros phone cost to test it, so before i do some more
try and error testing, i'd like to post what i've got so far, and
maybe someone can give me some pointers on what i'm doing wrong here.
Here are the files i'm using( i adapted them from samples from the
internet):
-------------------> index.html
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml_1.2.xml">
<wml>
<!-- JAD file -->
<mime-mapping>
<extension>jad</extension>
<mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
</mime-mapping>
<!--JAR file -->
<mime-mapping>
<extension>jar</extension>
<mime-type>application/java-archive</mime-type>
</mime-mapping>
<card id="games" title="JAVA GAMES">
<p><a href="file://www.mydomain.nl/j2me/pacman.jad">PacMan</a></p>
</card>
</wml>
-------------------> pacman.jad
MIDlet-1: PacMan, /icons/PacMan.png, example.PacMan.PacManGame
MIDlet-Description: PacMan
MIDlet-Jar-Size: 28326
MIDlet-Jar-URL: file://www.mydomain.nl/j2me/pacman.jar (*1)
MIDlet-Name: PacMan
MIDlet-Vendor: Me
MIDlet-Version: 2.0
Manifest-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
------------------->
Right now, after i click on the link (from my phone) it does nothing.
(*1) If i make this http://www.mydomain.nl/j2me/pacman.jar, i get some
error which is afaik related to the mime type, but i'm not really
sure.
The error is probably in the mime type not being available in the web
server from my provider. But if someone could take a look at these
files and tell me if there are errors in them which may be the cause
of my problem, i would really appreciate it !!
Best Regards,
Eric
Jesper Niclasen - 01 Jul 2007 15:32 GMT
> Hi all,
>
[quoted text clipped - 63 lines]
> Best Regards,
> Eric
Hello Eric,
I think you haven't added the jad and jar type to your web server.
Etc. add this to your .htacess file on your web site.
AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
Best Regards
Fuddi