Help - Search - Members - Calendar
Full Version: [tutorial] Testing Java Programs/games On The Computer
SE-NSE Forums > Sony Ericsson > Applications & Games
CyberWolf
So, I've found a lot of Java emulators, but i didn't find any that supported 240x320 screens, but I've discovered the Sony Ericsson SDK and found an emulator in it that supports 240x320 displays too.

A. What we need :

1. Java Platform, Standard Edition (also known as Java 2 Platform), you can find it HERE (just go to DOWNLOADS and select JDK 6 Update 3 and make shore you download the windows version, it should be about 65-70Mb)

2. Sony Ericsson SDK 2.5.0 for the Java™ ME Platform, you can find it HERE, just download the first file, it should be about 127Mb.
Attention, make shore there are no spaces in the path that you install the files into, as there's some problem with the emulator and it doesn't work if you have any spaces in the path (so don't install for example in "c:\program files")

3. JAD Maker, you can find it HERE (or look on the web for JadMaker)

B. How to install :

1. Install the Java Platform (the 65Mb file).

2. Install the Sony Ericsson SDK (the 127Mb file), at start-up it will say : "Found a JDK install in ... Do you want to use this ?" just press the "Yes" button
You will get a new window with SPOT xde® Player DLL, just install that one too, it's needed by the emulator.

3. Extract JAD Maker from the archive, start it up and select "Enable Explorer Context-Menu extension"

4. Download the attached BAT file and modify the first 2 lines to point to where JADMaker.exe and emulator.exe are.
If the path to JADMaker contains spaces make shore to put the path between "", for example :
CODE
set JADMAKER="c:\my utils\jadmaker.exe"


You can also change the 3rd line to change the type of phone the emulator will try to emulate, there's an entire list in the BAT file, you can use that as a reference.
Here's a list of Emulator Types that are supported :
  • SonyEricsson_China_JP7_128x160_Emu
  • SonyEricsson_China_JP7_176x220_Emu
  • SonyEricsson_China_JP7_240x320_Emu
  • SonyEricsson_China_JP8_128x160_Emu
  • SonyEricsson_China_JP8_176x220_Emu
  • SonyEricsson_China_JP8_240x320_Emu
  • SonyEricsson_F500i_Emu
  • SonyEricsson_J300_Emu
  • SonyEricsson_JP7_128x128_Emu
  • SonyEricsson_JP7_128x160_Emu
  • SonyEricsson_JP7_176x220_Emu
  • SonyEricsson_JP7_240x320_Emu
  • SonyEricsson_JP8_128x128_Emu
  • SonyEricsson_JP8_128x160_Emu
  • SonyEricsson_JP8_176x220_Emu
  • SonyEricsson_JP8_240x320_Emu
  • SonyEricsson_K300_Emu
  • SonyEricsson_K310_Emu
  • SonyEricsson_K320_Emu
  • SonyEricsson_K500_Emu
  • SonyEricsson_K510_Emu
  • SonyEricsson_K600_Emu
  • SonyEricsson_K700_Emu
  • SonyEricsson_K750_Emu
  • SonyEricsson_M600_Emu
  • SonyEricsson_P900_Emu
  • SonyEricsson_P910_Emu
  • SonyEricsson_P990_Close_Emu
  • SonyEricsson_P990_Open_Emu
  • SonyEricsson_S700_Emu
  • SonyEricsson_SJP3_240x320_Emu
  • SonyEricsson_V800_Emu
  • SonyEricsson_W200_Emu
  • SonyEricsson_W300_Emu
  • SonyEricsson_W600_Emu
  • SonyEricsson_W700_Emu
  • SonyEricsson_W800_Emu
  • SonyEricsson_W810_Emu
  • SonyEricsson_W900_Emu
  • SonyEricsson_W950_Emu
  • SonyEricsson_Z1010_Emu
  • SonyEricsson_Z500_Emu
  • SonyEricsson_Z520_Emu
  • SonyEricsson_Z525_Emu
  • SonyEricsson_Z530_Emu
  • SonyEricsson_Z550_Emu
  • SonyEricsson_Z558_Emu
  • SonyEricsson_Z800_Emu
As you can see, the K790/K800/K810 are not listed, for that we'll have to use one of the generic ones with 240x320 display, for example SonyEricsson_JP7_240x320_Emu.

C. How to use :
Copy the BAT file somewhere where's easy for you to find it. Right click on any JAR file, and select "Open With", select "Browse" and find the bat file. Now do the same for JAD files too. Now, whenever you want to open the java application/game in the emulator you just right click it, select "Open With" and select the bat file from the list, and presto, you've got your program in the emulator laugh.gif

D. FAQ :
1. Question : Can i save a screenshot with the program/game ?
Answer : Yes, of course you can, just press the F12 key (or select Midlet->Take Snapshot). A new folder named "snapshots" will be created (in the folder that contains the JAD/JAR file) and the screenshots will be called JARFileName-EmulatorType-Idex.png, so for example if you start "NTAl-BINPDA.jad" in the emulator and you have selected SonyEricsson_JP7_240x320 as the emulator, the first screenshot will be : "NTAl-BINPDA_SonyEricsson_JP7_240x320_1.png".

2. Question : Does this emulator support all games/programs ?
Answer : Well, sadly no, i can't tell you which programs/games do work with it, you'll have to try them out yourself.

3. Question : What phones does the emulator support ?
Answer : As you can see from the list, it supports most phones, and for the ones that are not supported dirrectly you can always use one of the generic ones with the right resolution (or maybe a phone that's similar in specs to the one you want to test).

Z. Source code of BAT file :
I've attached the file to the post, but i thought I'll also post the source-code, just in case somebody wants to take a look at it without downloading it. So, here it is :
CODE
@echo off

:: modify the next 2 lines to point to the correct programs
:: also the 3rd line defines what emulator type we'll use (as in what phone we're emulating)

set JADMAKER=c:\utilit\jadmaker.exe
set SEEMU=c:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\bin\emulator.exe
set EMUTYPE=SonyEricsson_JP8_240x320_Emu

:: here's a complete list of strings you can put in EMUTYPE :
:: SonyEricsson_China_JP7_128x160_Emu
:: SonyEricsson_China_JP7_176x220_Emu
:: SonyEricsson_China_JP7_240x320_Emu
:: SonyEricsson_China_JP8_128x160_Emu
:: SonyEricsson_China_JP8_176x220_Emu
:: SonyEricsson_China_JP8_240x320_Emu
:: SonyEricsson_F500i_Emu
:: SonyEricsson_J300_Emu
:: SonyEricsson_JP7_128x128_Emu
:: SonyEricsson_JP7_128x160_Emu
:: SonyEricsson_JP7_176x220_Emu
:: SonyEricsson_JP7_240x320_Emu
:: SonyEricsson_JP8_128x128_Emu
:: SonyEricsson_JP8_128x160_Emu
:: SonyEricsson_JP8_176x220_Emu
:: SonyEricsson_JP8_240x320_Emu
:: SonyEricsson_K300_Emu
:: SonyEricsson_K310_Emu
:: SonyEricsson_K320_Emu
:: SonyEricsson_K500_Emu
:: SonyEricsson_K510_Emu
:: SonyEricsson_K600_Emu
:: SonyEricsson_K700_Emu
:: SonyEricsson_K750_Emu
:: SonyEricsson_M600_Emu
:: SonyEricsson_P900_Emu
:: SonyEricsson_P910_Emu
:: SonyEricsson_P990_Close_Emu
:: SonyEricsson_P990_Open_Emu
:: SonyEricsson_S700_Emu
:: SonyEricsson_SJP3_240x320_Emu
:: SonyEricsson_V800_Emu
:: SonyEricsson_W200_Emu
:: SonyEricsson_W300_Emu
:: SonyEricsson_W600_Emu
:: SonyEricsson_W700_Emu
:: SonyEricsson_W800_Emu
:: SonyEricsson_W810_Emu
:: SonyEricsson_W900_Emu
:: SonyEricsson_W950_Emu
:: SonyEricsson_Z1010_Emu
:: SonyEricsson_Z500_Emu
:: SonyEricsson_Z520_Emu
:: SonyEricsson_Z525_Emu
:: SonyEricsson_Z530_Emu
:: SonyEricsson_Z550_Emu
:: SonyEricsson_Z558_Emu
:: SonyEricsson_Z800_Emu

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: don't modify anything below this lines
echo.
echo.
echo.
echo Filename  : %~n1
echo Extension : %~x1

:: if it's a JAD file we start the emulator
if "%~x1"==".jad" goto _start_jad

:: if it's a JAR file, we first create a JAD file
if "%~x1"==".jar" goto _make_jad

:: otherwise show the error message
goto _error
rem


:_make_jad
:: create the JAD file first
echo.
echo Creating JAD file
%JADMAKER% "%~n1.jar"
goto _start_jad

:_start_jad
:: start the emulator
echo.
echo Starting emulator
echo.
%SEEMU% -Xdevice:%EMUTYPE% -Xdescriptor:"%~n1.jad"
goto _exit

:_error
:: show the error message
echo. ERROR !!!
echo.
echo Sorry, but you have to call this BAT file with either a JAD or a JAR file
echo.
echo.
echo.
goto _exit

:_exit


P.S. sorry for the long post, but i wanted to explain everything as well as i could. If anybody has any questions/suggestions please post here and i'll try to keep this first post up to date.
I've also attached a few screenshots taken by the emulator, as you can see, only the screen content is saved, not how the emulator actually looks like.

EDIT
Changed the setting to SonyEricsson_JP7_240x320_Emu since the K790/k800/k810/k818 phones are JP7 (they have 2 special action buttons), while the SonyEricsson_JP8_240x320_Emu is for K850 (it has 3 special action buttons).
diezil
QUOTE (verszipo @ 2007-10-09 11:00) *
As you can see, the K790/K800/K810 are not listed, for that we'll have to use one of the generic ones with 240x320 display, for example SonyEricsson_JP8_240x320_Emu.



k790/k800/k810 = JP-7 tongue.gif
Emu needed = SonyEricsson_JP7_240x320_Emu (just so you dont accidently create applications with unsurported API's, assuming thats what your using the SDK for)

Nice guide though thumbsup.gif
CyberWolf
QUOTE (diezil @ 2007-10-09 14:03) *
k790/k800/k810 = JP-7 tongue.gif
Emu needed = SonyEricsson_JP7_240x320_Emu (just so you dont accidently create applications with unsurported API's, assuming thats what your using the SDK for)

Nice guide though thumbsup.gif


Well, i don't use the SDK myself, just installed it to see what it can do and found the emulator. What i meant that there's no k790/k800/k810 is that for other phones (for example k750, W800) you have an Emulator Type option and when you select that then the emulator will show a picture with the actual phone, while for "generic" emulators it shows a generic skin.

Here are a few screenshots of the emulator with different "skins" selected :
Karun
Nice tutorial! thumbsup.gif
sriramkrishnan06
nice tutorial...i was looking for such an emulator and a guide as well...

i guess i need not look any where else...

thanx
Whosat
which should i use for w580i?
sai_510
You people can download an emulator called " Midp2.exe " which can convert .jar files into .exe files, which can be played on computer........
I got a question to ask .......I hav downloaded some around 1200 + games and 650 + ringtones and uploaded them to my site , but is it allowed to share them here ?

__________________________________________________________

Regards,
Sai
CyberWolf
QUOTE (sai_510 @ 2007-11-27 21:07) *
You people can download an emulator called " Midp2.exe " which can convert .jar files into .exe files, which can be played on computer........
I got a question to ask .......I hav downloaded some around 1200 + games and 650 + ringtones and uploaded them to my site , but is it allowed to share them here ?

__________________________________________________________

Regards,
Sai


Yes, you can use other emulators la MIDP, but as i said, i didn't find any emulator that would actually work with 240x320 resolution java games/programs (and i can say i've searched a lot and tried about 10-15 emulators before i've found this one).

About the file sharing, well, if it contains any copyrighted material then you should probably not post the link as it's considered "warez" (which is ilegal).

QUOTE
which should i use for w580i?

You would have to use SonyEricsson_JP7_240x320_Emu since it's a 240x320 display phone with 2 special buttons (the JP8 is the one with 3 special buttons, like the K850).
sai_510
QUOTE (CyberWolf @ 2007-11-28 14:47) *
Yes, you can use other emulators la MIDP, but as i said, i didn't find any emulator that would actually work with 240x320 resolution java games/programs (and i can say i've searched a lot and tried about 10-15 emulators before i've found this one).

About the file sharing, well, if it contains any copyrighted material then you should probably not post the link as it's considered "warez" (which is ilegal).
You would have to use SonyEricsson_JP7_240x320_Emu since it's a 240x320 display phone with 2 special buttons (the JP8 is the one with 3 special buttons, like the K850).


Well if u r saying about "Copywrite" , then i think i can give d link for ringtones as they r all in .MID format and i don think dat anybody adds d tag "copywrite" wid ringtones... lol.gif
farhan8921
Whats ur site sai? Mayb we can download the games from you??
Bidoko
Ah thanks for this, was looking around for a good Java emu a while back,

Appreciated
r0x0t0
QUOTE
You would have to use SonyEricsson_JP7_240x320_Emu since it's a 240x320 display phone with 2 special buttons (the JP8 is the one with 3 special buttons, like the K850).

SE java sdk doesn't have w580 emulator with cover image and buttons ?? sad.gif
Prom1
Great Tutorial.

I'd like to add that (I think its possible) for Mac OS X users, ignore step 1 - for downloading & installing the JDK from Sun Microsystems as OS X already has it pre-installed (however you May need an UPDATE through the OS tool). You'll still need to follow the tutorial above.

Sorry its that many users in North America are switching to the Mac OS X (or Linux) platform in significant enough numbers that we should try to help accomodate them as well.

Again GREAT tutorial
DTBdaman5
Nice tutorial.
mohanhegde
yeeeeeehaaaaaaa thumbsup.gif thumbsup.gif smile.gif smile.gif smile.gif smile.gif

Thanks for the wonderful tutorial pal.........i was really searching high and low on the net for a 240x320 java emulator

and now i can run most of the games on my pc...all thanks to u

But i do have one problem.....the games are running too slow and have a severe lag sad.gif sad.gif ...is there any solution to it??
fieryjack55
There is a java emulator called Sjboy chinglish version that emulates 240x320 and it's only a couple of megabytes in size ,I've been using it for ages to test w910 games before I put them on the phone.
ride_bmx_mhell
great..this tutorial is really cool dudE^^
Unbreakable360
im stuck it says to download the attached bat file?? what?? where?? and how??

never mind im slow lol got it. now seein if it works

wierd it doesnt let me select the bat file as the program to start it with ???
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.