Java games without gsm-cable / post from Poland

Hi! My name is Gregor and I come from Poland. I have some question.

I wan to download java games on my phone without gsm-cable. I done it with color wallpaper and polyphony ringtones (I made serwer which attendance WML, put wallpapers and ringotnes into serwer and connected with server by my phone), but I can’t do it with java-games. Java-games have *.JAD and *.JAR ending - I don’t know what I must do with this files. I try do download them but they don’t want to download as hames. I see only some text when I open *.JAR or *.JAD files by my phone. Please help me. What I must do to donload java-games on my phone? I have Nokia 3510i.

Thanks You very much for answers
Greetings
Gregor

P.S. Very sorry for mistakes but my english is not so good

You must make sure that your web server has the correct “MIME types” for .jad and .jar files. E.g. if you’re using Apache, your file conf/mime.types should include these lines:

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

If you’re using Tomcat, your file conf/web.xml should include these lines:

  <mime-mapping>
    <extension>jar</extension>
    <mime-type>application/java-archive</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>jad</extension>
    <mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
  </mime-mapping>

These configuration lines will allow your web server to return the correct ‘Content-Type’ HTTP header with each file, and your phone will read that header and understand that the files contain a MIDlet.

Thanks You very much for answer. I made all that you tell me and everything works good.

Gregor

I have one more question. Do you know some sites from where I can download free java-games??