Download and install Aptana Studio
Install the WRT plugin
- First, you’ll need Aptana Studio, which you download from the Aptana website. Aptana Studio can be installed on a Microsoft Windows 32- or 64-bit platform, Mac OSX 10.4+, Linux 32-bit with GTK, or 64-bit Linux. Full details of system requirements are provided on the Aptana Studio download page.
- Note that only the stand-alone versions of Aptana Studio and Aptana Studio Pro are supported by the Nokia WRT Plug-in. If you are running the Eclipse IDE and using the Aptana Studio Plug-in, then installation of the Nokia WRT Plug-in for Aptana Studio is not supported.
- Once Aptana Studio is installed, the Nokia WRT Plug-in can be installed by selecting Help > My Aptana > Plugins. The Nokia WRT Plug-in will be listed in the Platforms tab and can be installed by clicking Get it. Once installed, Aptana Studio will regularly check for updates to the plug-in.

Import Symbian Project
- File -->New -->Import Nokia Web Runtime Widgets.

- Locate symbian project through browse button.




- Directory structure of symbian project

Copy the generated code to the project main directory.
Packaging and deploying
- You can choose to exclude or include specific files from a widget installation package by right-clicking them in the project explorer view.
The widget can be deployed to either an S60 device via Bluetooth or to S60 3rd FP2 or S60 5th Edition emulator.

- Select the emulator to run the project.

- Once you have deployed to the emulator environment, fire up the emulator and locate the wgz-file from the File Manager application and install it.
- The emulator and on-device debugging facilities still, for now, rely on the script logging facilities that can be activated from the S60 Web Browser settings. (General > Java/ECMA script errors).
How to download simulator
- Click on following link
http://www.forum.nokia.com/info/sw.nokia.com/id/ec866fab-4b76-49f6-b5a5-af0631419e9c/S60_All_in_One_SDKs.html
How to deploy on simulator
- I am assuming that S60 simulator installed in c:\ drive, then there will be a device.xml file in following location…
C:\Program Files\Common Files\Symbian\devices.xml
- Make sure there is an entry for the emulator you just installed. This is what it looks like.
<?xml version="1.0"?>
<devices version="1.0">
<device id="S60_3rd_FP2_SDK_v1.1" name="com.nokia.s60" default="yes" userdeletable="yes">
<epocroot>C:\S60\devices\S60_3rd_FP2_SDK_v1.1</epocroot>
<toolsroot>C:\S60\devices\S60_3rd_FP2_SDK_v1.1</toolsroot>
</device>
<device id="S60_5th_Edition_SDK_v0.9" name="com.nokia.s60" default="yes" userdeletable="yes">
<epocroot>C:\S60\devices\S60_5th_Edition_SDK_v0.9</epocroot>
<toolsroot>C:\S60\devices\S60_5th_Edition_SDK_v0.9</toolsroot>
</device>
</devices>
How to change the default open html file:
- Open the Info.plist file and here under <key>MainHTML</key> there is a tag <string>index.html</string>. If user wants to change the default html file from index.html to any other file then change the value of index.html with that file name... See the image given below…
Changes needed to the generated files:
- User need to include the following js files in the generated index.html file.
<script type=”javascript” src=”WRTKit/WRTKit.js”></script>
<script type=”javascript” src="http://maps.google.com/maps?file=api&v=2&sensor=true_or_false&key=ABQIAAAAdCmCu-6k6RxrrVunNiCCTRQqAb5KmezRHAoNuXHw1zezqTni4RSXx9wO98oB6-4VzRhjW0yYGdulZQ" type="text/javascript"> </script>
|