|
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.
R9 ~) r! J+ M, t( Q% d
0 F6 y r2 _' z; c# C5 Y+ qNote: 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.
# A1 H3 V: N( h) d7 G6 U
0 }7 Y& ]. |$ w0 fBefore You Install the Mojo SDK
/ ^+ t- ]1 u1 P- [. S+ B) }' DBefore installing the webOS™ SDK, perform the following steps:- m6 ?. B; b3 M
8 Y, U& v H5 ?" h U$ u0 l' xInstall Java
6 i* \6 K4 ^+ e0 s6 GDownload and install the latest version of Java. To verify that Java is installed. go to the Command Prompt and type:
1 `! V/ h) C' Q3 M1 N% bjava -version" H4 r3 M5 |) d% S
If Java is installed, Java version information appears.! |4 g4 G8 ?$ s+ ^3 d: H
Install Safari 4
9 c/ Y2 v4 ^" R% j9 rThe Safari browser includes a number of features that are useful for debugging webOS applications.5 [/ p. Z- T2 P) M$ ~4 u( e; y
Install VirtualBox
! `$ D% A' L$ X. n% WThe 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.; E! r/ m& R' A' I! }
Note: 64-bit platforms are not yet officially supported; however, there is information about installing on 64-bit Vista and XP in the Forum.$ T1 Z; K6 u: s7 T& E: |4 H. `! ^) D2 S5 `
. M# R2 A8 R5 wInstalling the Palm® Mojo™ SDK+ _3 G1 Q" }5 g4 n3 o0 X
Note: Do not install the SDK into the same directory as Palm Host.% F' g0 h* X- K
2 u. y+ ?1 x7 A1 J. e
Download the Win SDK.
" B- L# S/ o/ T, v% ]* F [Make sure VirtualBox is not running before starting the Palm SDK Installer.( R/ o A, N' m J) q* t
Double-click the file to start the Palm SDK Installer, which guides you through the installation process.
% f* g; B' g, ^Open the Palm Emulator, either by double-clicking the icon on the desktop or from Start > All Programs > Palm >SDK > Palm Emulator.8 q" p3 j/ s3 H5 J
The first time the Palm Emulator runs, there is a delay while VirtualBox builds the virtual machine.
8 i. M* D. r" rClick OK to dismiss the dialogs that appear.3 l s, h: p' i1 q t( X
Create or choose a directory to use as your development workspace.
! U' R; v/ x- [2 K$ \4 q: xOpen a command-line window (Start > Run > cmd) and type palm-generate to verify that the tools are installed. & x. F1 C6 ^- Y" A% j% d+ s
If help information appears, the tools are correctly installed.# A0 b4 I) j$ P9 ` I" i# ^$ ^
If palm-generate is not recognized as a command, the tools are not correctly installed.
1 x0 x( j5 j3 hIf java is not recognized as a command, Java is not correctly installed.
' j' l& t `5 h( ~& A: Y$ BThe SDK includes sample code to help you understand how to write webOS applications. For more information, refer to the Samples page.
$ Y4 J9 T$ i2 ]5 V7 u" T" Y ~2 e
Running the Palm Emulator
' d. n: K$ n! z9 L0 |& ATo 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.
g. W5 `( L5 M# f) q
" w6 e! e1 w' k6 k5 OFor more information about the emulator, see the Emulator page.: t5 Y) c7 q9 y4 C7 E) D: ^' T
% u4 D' y: s; k2 p4 u2 u: L
Additional Information g4 _) y1 q+ ]& a
If you're not sure where to go next, look at the following sections for more information.8 H2 y2 u/ z4 L; n% A; d
3 f9 z- T5 L8 p/ W0 u6 [
Hello, World!
J& W' b: s6 C5 d2 H) v# lFor a tutorial that will help you write your first webOS application, visit the Hello, World page.2 I- ?0 O7 `9 Q4 {% ?: p
9 G$ p: m) i/ t6 x. M' LCommand-Line Tools) S5 P$ [2 B1 B5 C% ?' m2 Y) a
The Mojo SDK includes the following command-line development tools:9 L# @$ |0 c- d$ t& `$ M
0 j0 C0 u# \- j3 }palm-generate---for generating basic applications and scenes
: Z/ M4 k" p7 q) [palm-package---for packaging a palm application before installation on the emulator or a device6 ^- s* H6 M2 [: M5 R& }' d
palm-install---for installing a packaged application on the emulator or a device7 w, k& C* b5 d* c' o. L
palm-launch---for launching an installed application on the emulator or a device
3 P7 ~$ c9 p% d6 d7 z* vFor more information about the Command-Line Tools, see the Command-Line Tools page.% ?, f" G% `& `% A7 z$ t1 ?9 e$ n4 H0 R
W1 A, k' _& Z- X# ? . ^! }4 l# x& D B1 O
0 X! \: ~( u l/ J; y1 a$ f' fEclipse Plug-Ins
$ `0 f3 N7 ^& W! V: ~- q# `% ~The 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. |
|