Sony Ericsson P900, P800 manual PersonalJava, Additional tools useful to the pJava developer

Page 14

Developers Guideline UIQ C++ and PersonalJava

PersonalJava

This section offers advice about developing PersonalJava applications. This requires Symbian OS envi- ronment specific knowledge not needed for MIDP application development.

PersonalJava (referred to as “pJava” in this document) was one of the first Java programming environ- ments targeted for development of applications for resource-constrained devices. These devices include PDAs (Personal Digital Assistants) and Communicators/Smartphones. pJava specifies a reduced set of class libraries compared to a desktop environment and historically represented the first attempt at select- ing desktop level APIs suitable for the Java runtime environment of a high-end mobile device.

Over the years the Symbian port of pJava to Symbian OS has been undergoing substantial optimization (assembler coded byte code interpreter, optimized AWT library and so on) that today, in combination with hardware performance advancements, make this a powerful alternative for realizing mobile applications. pJava is supported on both P800, P900 and P910 series, and is provided as an alternative to using Sym- bian OS C++ for feature-rich third party applications.

Applications developed in pJava do not have access to the hardware and functions of the phone unless you use the Java Native Interface (JNI) and write the access procedures in C++. Your applications written in pJava will probably run slower than a corresponding application written in C++, however they are typi- cally easier to write. As previously stated, this does not mean to imply that pJava applications will not per- form well. You can access the features of the phone by using JNI to access C++ DLLs to access the features of the phone available to C++ applications.

Note:

JavaPhone APIs is not available on P800, P900 and P910 series and there is no direct Bluetooth access.

For more information on programming in pJava, download the self training course from Sony Ericsson Developer World, see links.

Additional tools useful to the pJava developer

The Sun Microsystems Inc. specification of Personal Java (PJAE). This document describes the subset of a JDK 1.1.x generation class library that is supported by a pJava edition. The P800, P900 and P910 series pJava runtime environment corresponds to version 1.1.1a (http://java.sun.com/products/personaljava/spec-1-1-1/pjae-spec.pdf)

A copy of the Sun Microsystems Inc. “JDK” (Java Development Kit).

If you intend to use the JDK standalone to carry out the compilation of Java source code from a DOS command shell to be executed on P800, P900 and P910 series, you should download and install the JDK.1.8_010 at

http://java.sun.com/products/archive/jdk/1.1.8_010/index.html, which closely corresponds to the pJava evolution. It has formally passed the “Sun End of Life process” but may still be preferred for this usage, since it does not offer more advanced Java features and class library than supported by the Symbian Java runtime, thus reducing the risk of code incompatibility.

14

October 2004

Image 14
Contents UIQ C++ and PersonalJava Preface Purpose of this documentTerminology and abbreviations Document historyTrademarks and acknowledgements URI WMA Online Developer ResourcesSony Ericsson Developer Support URL WTKContents Technical specifications for the P800, P900 and P910 series Technical overview and architecture Technical data P910 series P900 series P800 series Developer’s perspective on the P800, P900 and P910 seriesApplication development General tips for the P900 and P910 series Feature SupportGeneral information about the P900 series Internal user storage C drive Folder view of internal storageDevelopers Guideline UIQ C++ and PersonalJava UIQ 2.1 SDK SDK compatibility To be used withUIQ 2.0 SDK PersonalJava Additional tools useful to the pJava developerPJava font limitations java.awt.Font PJava performancePJava application considerations FontMetrics fm = tk.getFontMetricsUIQ 2.0 vs UIQ 2.1 and application compatibility Behaviour related to flip modesApplication development ConventionTechnical requirements for the UIQ SDK UIQ SDK for Symbian OSDevice Emulator and Library Linking Library linking for applications with device emulationSkin images Emulator issues and guidelinesPorting applications Chinese extensions to the emulatorVibration API Sony Ericsson specific APIsCamera API CompatibilityDevice identification Other useful Symbian APIsStreaming AMR API @StreamingAmr.sis, 0x101F94AEAudio BluetoothColour display Media serverAPI Limitations Messaging/MMS Deploying applications on the P800, P900 and P910 seriesETel P800/P900 series specific .sis packages More information Installation and data storageOn-target debugging Signing digital applications How to check if the Symbian certificate is installedHow to install the Symbian certificate Symbian SignedGo-to-Market opportunities Technical specifications and references Characteristic P910 series P900 series P800 series Technical specifications for the P800, P900 and P910 seriesSpecification table Characteristic P910 P900 series P800 seriesPJava on P800, P900 and P910 series Links and referencesTips, information and external documentation LinksIndex
Related manuals
Manual 4 pages 9.29 Kb Manual 41 pages 10.08 Kb Manual 8 pages 49.9 Kb