|
Read about installing the Mojo SDK and running the Palm emulator, then go to the Hello, World page and try writing your first webOS™ application.
( q4 ~. o& K; D5 o2 F; {/ i: L5 ^9 g% ~4 ?% F9 v
Note: If you are upgrading from Mojo SDK 0.3.1 or earlier, follow the instructions for "Uninstalling the Palm Emulator and Virtual Machine" on the Uninstalling the SDK page. If you are upgrading from Mojo SDK 0.3.2 or later, simply install the new version over the old.
6 j" M6 Q) K) T% I. I% N a1 h: A9 w } u
Before You Install the Mojo SDK
8 o1 _% O$ z* _# ]6 r, [Before installing the webOS™ SDK, perform the following steps:
7 C% V& k, F* H% K. X& N/ {( w* m- Z/ z5 P d9 [" [
Install Java
& S- q/ Y; n( Z% y2 fDownload and install the latest version of Java. To verify that Java is installed. go to the Command Prompt and type:
" l" C% Y! A' S, Z4 d$ sjava -version
/ i4 {, b6 {$ @1 P1 U) U$ V2 o. WIf Java is installed, Java version information appears.! t* ^! p! V9 t3 w4 n' z0 Z! J: E b
Install Safari 4
/ [( Y% e2 q/ y5 U- `The Safari browser includes a number of features that are useful for debugging webOS applications.
9 c) E% k2 T% U* P& iInstall VirtualBox
' z( m: S$ V6 R" V# R c/ Y" yThe Palm Emulator is built on VirtualBox, virtual machine software that you can download free from Sun Microsystems. VirtualBox is required before installing the Mojo SDK.
- G8 _8 w3 {8 aNote: 64-bit platforms are not yet officially supported; however, there is information about installing on 64-bit Vista and XP in the Forum.
$ z8 U$ S& U4 L4 _# ]( k/ U: o F- H) b/ w7 O% G' f
Installing the Palm® Mojo™ SDK+ X# \3 G/ I* M, u* B4 M
Note: Do not install the SDK into the same directory as Palm Host.
- `6 [% U# A6 m4 X/ N. U6 b2 G
. K h# z- B9 X j7 ?/ KDownload the Win SDK.
! o2 _5 X, | Y8 A: a# }Make sure VirtualBox is not running before starting the Palm SDK Installer.5 S; V' `$ y- R) i/ D2 o
Double-click the file to start the Palm SDK Installer, which guides you through the installation process.8 N; k4 z( L. [1 c
Open the Palm Emulator, either by double-clicking the icon on the desktop or from Start > All Programs > Palm >SDK > Palm Emulator.1 ? l& M4 y$ W
The first time the Palm Emulator runs, there is a delay while VirtualBox builds the virtual machine.$ T- y: r, I9 W( t% J
Click OK to dismiss the dialogs that appear.
& s& U! u; m# L! d; RCreate or choose a directory to use as your development workspace., Y; @ p6 A7 g; K: }2 e
Open a command-line window (Start > Run > cmd) and type palm-generate to verify that the tools are installed.
" M! t! Y3 O4 Q) \If help information appears, the tools are correctly installed.% {/ V1 O5 x' @' \
If palm-generate is not recognized as a command, the tools are not correctly installed.6 t5 M9 D" B( D
If java is not recognized as a command, Java is not correctly installed.4 O( u% e2 ?# ~
The SDK includes sample code to help you understand how to write webOS applications. For more information, refer to the Samples page.2 L- d/ P1 l9 A6 F2 V3 ^2 @. ?
- g- ]" K- f0 Y8 O% E3 BRunning the Palm Emulator
8 Q% c# d% J5 ]To run the Palm emulator, double-click its icon. VirtualBox starts up and creates the virtual machine that hosts the Palm webOS platform. The first time you run the emulator, VirtualBox presents several dialogs. You can safely dismiss each dialog by clicking OK.
$ x. K$ n- @# a& Y2 K5 f
7 U3 o& d0 @2 \ }( gFor more information about the emulator, see the Emulator page.
/ e1 ~# E: g! E, {: R
5 n9 \+ k: i' _5 yAdditional Information
I2 P* \/ K, Q) P0 A8 o7 AIf you're not sure where to go next, look at the following sections for more information./ {8 i9 f h! C! _9 p
8 M/ Z/ f) c6 |2 c k* h+ b
Hello, World!8 K) T8 N) Z" j1 D. Y" E
For a tutorial that will help you write your first webOS application, visit the Hello, World page.5 z* B# ^" E0 X
" y; ~2 B/ R/ d N5 ~
Command-Line Tools0 e4 w5 h S& P
The Mojo SDK includes the following command-line development tools:
7 B2 A7 z+ Z2 L2 W" s
# A1 P& i& L% `palm-generate---for generating basic applications and scenes( |1 k2 h1 a y, K* E) c! `
palm-package---for packaging a palm application before installation on the emulator or a device
* c9 Z- M% z# q- E" apalm-install---for installing a packaged application on the emulator or a device
, _, x3 ]! T1 n- | r' j# T5 Ypalm-launch---for launching an installed application on the emulator or a device K. h5 T: f7 A# X2 p( ~6 v
For more information about the Command-Line Tools, see the Command-Line Tools page.* H! l% m. ?& s& X. t7 t8 m
" J: L( F/ |) S v1 P
H& h2 S0 U1 T4 k) M4 ~
+ u7 U5 ~( I2 t8 \# k5 R
Eclipse Plug-Ins
& n" k" j7 I! v2 A/ s, eThe Mojo SDK includes plug-ins that work with the Eclipse development environment and integrate with the Palm emulator. For information about installing and using the Eclipse plug-ins, visit the Eclipse plug-ins page. |
|