I recently bought a Samsung G800 and wanted to get some java games onto it. I tried downloading some games on my PC (bear in mind they have to be 240x320 pixels to work on the G800) and copying them onto my mobile phone using the Samsung PC Studio software. Sadly, it didn't work. There didn't seem to be any way to make it install them. I've looked around the web for how to install java games on the G800 and found some methods involving special software to transfer the games to the phone, but felt this was a bit risky (some posters at the forum I found the info at said that it messed some of their games up and meant you couldn't delete the games directly on the phone). This didn't strike me as the best way to put the games on my mobile. I also found out a bit about entering special feature unlock codes on the phone to enable Java installations... but there doesn't seem to be a code for the G800 and yet again I'd rather not risk messing up this expensive phone!
So it dawned on me that there are sites where you can download games directly to your phone through WAP. I also realised I get free Orange World time on my PAYG tarrif and could in theory set up a web/wap site of my own, to access through the phone and download the games in their .jar & .jad formats.
Unfortunately I wasted most of my Orange World credit for this month trying to figure it out... but have managed to get a few games on with what little data credit I had left. I thought I'd save you all the trouble of trying to figure out how to set up a similar site for yourselves by posting this page.
Okay, now here's what you do!
» 1. Create the WAP Page
Copy and paste the below code into a text editor...
...and save it as index.wml.
You will need to edit the file to have the URLs and Titles of the games you are uploading to it. As you can see in the code above, you should put your game title (this will be the link to select when viewing on your phone) where it says "GAME TITLE HERE", and the URL of the .jad file instead of "yoursite/nameofjadfile.jad". You can edit in as many or as few games as you like by copying and pasting the relevant lines.
» 2. Uploading the WAP Page & Java Games
Now you'll need to upload the page & the games. You will need to edit the contents of the .jad files a little. Open them in a text editor and find the line that starts "MIDlet-Jar-URL:" - you'll see the name of the associated .jar file after it, and need to change this to a full URL, eg:
MIDlet-Jar-URL: Mini_Game_Pack-j2me-samsung-(240x320).jar
to:
MIDlet-Jar-URL: http://yoursite/Mini_Game_Pack-j2me-samsung-(240x320).jar
Now you're ready to upload them to your webspace (the same address as you've used in the links on the WAP page and in the .jad files, remember!). It may be wise to ensure they are uploaded in BINARY mode rather than ASCII, but I'm not sure this makes a difference (and I can't check now I'm out of data credit!).
» 3. Setting up your Java MIME types on the Server
This was my main stumbling block, and how I wasted so much credit. I didn't realise this was necessary. I didn't understand why when I tried to download the Java games from my WAP page to my mobile, the games were just coming out as garbled text. It's all because of the MIME types. The server needs to know how to transmit the data properly. Mine didn't know how and assumed it was text.
You may find your server already has the right MIME types set up, you can check this through your hosting control panel I expect. Mine's got a MIME types option on the main menu. If you can't set them yourself, ask your host to set them up for you. You need to set up:
.jad as text/vnd.sun.j2me.app-descriptor
.jar as application/java-archive
(I found this out through this link - thanks dchester!)
Once that's set up you're ready to roll!
» 4. Downloading the Java Games to your Samsung G800 from your WAP page
Now just go online with your phone and enter the URL for your WAP page (eg: http://yoursite/somefolder/index.wml) and select one of your game titles. It should now come up with a screen asking you to save the game. Save it, and it will install to your Games folder.
Voila!
Okay, so it's not totally free (unless you get free data credit) like using the weird software to transfer the games on, but it's a lot cheaper than buying them and it's also less likely to damage your phone in my opinion - though I take no responsibility for anything that happens as a result of you following my advice. It worked for me, and I felt compelled to write this to help anyone else who wasn't keen on the other options.
Enjoy :)