Ok guys. And now, the cherry on the cake:
Getting the (Windows version of) Nokia emulator to run on Linux
In order to do that, you need Wine version 1.0 or upper (maybe it's ok with previous versions but i'm using this one).
You also need the Java SE Runtime Environment (JRE) for Windows, and a Nokia SDK (i have tested this tips with Series 40 5th Edition, Feature Pack 1 SDK but it may works with other SDK).
Find someone who have Windows on his PC (Thanks mom! ), and install JRE, and Nokia SDK as standalone on it.
Make an archive with the content of C:\Nokia\Devices: the S40_5th_Edition_SDK_Feature_Pack_1 folder and all it's content.
Get also the C:\Windows\System32\winscard.dll file.
Write the archive and the DLL on a USB key or a CD and come back to your PC.
Run Wine configuration process (this will create the ~/.wine folder and all needed setup.
Click on the "Display" tab, check for the Direct3D section, maybe you will have to disable Vertex Shader and/or Pixel Shader later.
Click on the "Library/DLL" tab, click "Add" button, select winscard DLL, click "Set/Change" button and select native.
Click "Apply", and "OK".
Copy the winscard.dll file into the ~/.wine/drive_c/windows/system32 folder
Open a console, and install Windows version of JRE:
Uncompress the S40_5th_Edition_SDK_Feature_Pack_1 archive into the ~/.wine/drive_c folder
The installation process is now done, you can check if this works by going to the ~/.wine/drive_c/S40_5th_Edition_SDK_Feature_Pack_1/bin folder into a console and type:
If needed, uncheck Pixel Shader and/or set Vertex Shader to none.
Using the emulator with the Wireless Toolkit:
Yheaa, this one works too (almost ).
Go to the ./devices folder of WTK:
With NetBeans -> netbeans-6.5/mobility8/WTK2.5.2/wtklib/devices
Standalone -> WTK2.5.2/wtklib/devices
Make a symbolic link to ~/wine/drive_c/S40_5th_Edition_SDK_Feature_Pack_1 folder:
Where user is your home folder.
ln -s /home/user/.wine/drive_c/S40_5th_Edition_SDK_Feature_Pack_1 ./S40_5th_Edition_SDK_Feature_Pack_1
Okay, fasten your seat bealt, here we go:
Open your favorite text editor and copy/paste that:
Save as /home/user/.wine/drive_c/S40_5th_Edition_SDK_Feature_Pack_1/bin/S40_5th_Edition_SDK_Feature_Pack_1_em.sh
where user is your home folder.
Create a new document and copy/paste that:
Save as /home/user/.wine/drive_c/S40_5th_Edition_SDK_Feature_Pack_1/bin/preverify.sh
where user is your home folder.
Open the file /home/user/.wine/drive_c/S40_5th_Edition_SDK_Feature_Pack_1/S40_5th_Edition_SDK_Feature_Pack_1.properties
Change all "\\" with a "/", example:
Find the emulator.binary entry and change it by the following:
Find the preverifier.binary entry and change it by the following:
And find the S40_5th_Edition_SDK_Feature_Pack_1.binary entry and change it by the following:
Save the file.
Check out if this works, by running ktoolbar, open or create a project, build and run
Passing the MIDlet arguments to test to the emulator, at the time, you need to move your .JAR/.JAD files into the ~/.wine/drive_c/S40_5th_Edition_SDK_Feature_Pack_1/bin/storage/6500500/E folder.
Okay, check out this screenshot:
As you see, it works with Linux!