Accessibility

Table of Contents

Build a YChat! Instant Messenger application using Flash Lite for mobile devices

Setup and installation

This section provides detailed instructions to set up your system for mobile development in preparation for building the YChat! Instant Messenger application. Follow the steps below to setup the development environment:

  1. Install Flash CS4 Professional from Adobe Creative Suite 4.
  2. Install Device Central CS4 from Adobe Creative Suite 4.
  3. Install J2EE components for Servlets. The best strategy is to install the J2EE 1.4 SDK, which includes JDK 5.0. Set the Path variable to point to $JAVA_HOME/bin. Set the JAVA_HOME variable to point to the base directory of the JDK folder.
  4. Install JDK 5.0 (or higher) if not already installed as described above.
  5. Install Eclipse 3.4 IDE for Java EE developers. Download, uncompress the ZIP file and install Eclipse. You can use it to debug and run through the Servlet code for the YChat! IM web proxy server.
  6. Install Apache Tomcat. Set TOMCAT_HOME to point to the base directory of the Tomcat installation. Set the Path variable to point to $TOMCAT_HOME/bin. You can use Tomcat to deploy the proxy server.
  7. Install the Eclipse Plug-in for Tomcat. This allows you to launch Tomcat from Eclipse.
  8. Install the Nokia S60 C++ MR SDK. Be sure to download and install the maintenance release.

    Note: If you are running the Vista operating system, disable the sound controller to resolve any issues with the Nokia Emulator. This is a known issue that is listed on the Nokia forum.

  9. Install the KuneriLite Plug-in. Use the installation wizard and be sure to follow the setup instructions. This plug-in facilitates file upload capabilities and packaging which will allow you to package the Flash Lite files into the .sis file format so that you can upload and test the chat application on an actual S60 mobile device. Be sure to configure the plug-in properly, so that you can add network access and file upload permissions to the SWF file.

    Note: If you are running the Vista operating system, download the patch available on the KuneriLite Plug-in page and follow the instructions described in the documentation for the Vista patch.

  10. Install the Local Content Updater. In order to test the YChat! Instant Messenger application on a Nokia N95 handset (or any other Nokia S60 device) you'll need to install this patch to override the sandbox security issues. By default, SWF files are not enabled for file input or output and network access is restricted to the Nokia Runtime. The Local Content Updater adds the necessary permissions to the SWF file so that it can access the file system and the network on the device. Here's an example:
    LocalContentUpdater.exe –r
         –a YChat.SWF.
  11. Install the Nokia PC Suite. Be sure to download and install the PC Suite software that corresponds to your Nokia device. This software makes it easier to install and transfer files from your laptop or desktop to your mobile device in case if you would want to test it on the actual devices.