|
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.# u( k3 N! X( n- E
9 u1 l/ x3 h, s8 g% X; D0 g8 C0 b
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.; {. z. ~! k$ Q
7 m+ Q- t) S. u: J
Before You Install the Mojo SDK
' K$ f7 g: \9 R. r* v9 v; @3 jBefore installing the webOS™ SDK, perform the following steps:- w% z _- x9 g. C* I
8 n' o) C5 @8 U; h& ~
Install Java6 P* A7 }: A4 b2 {- \$ u
Download and install the latest version of Java. To verify that Java is installed. go to the Command Prompt and type:
) t) P# I+ d0 T( g' R' S$ I6 zjava -version' E9 ~; K4 e& s( H
If Java is installed, Java version information appears.
0 x/ w9 a) Z- l, I5 E+ FInstall Safari 4
% n4 |! N" V2 D2 v# R* @/ G3 ]- _The Safari browser includes a number of features that are useful for debugging webOS applications.; w5 N0 g. ~ ]; o
Install VirtualBox& P( K' A9 g) q* v% E( @
The 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." l5 Y6 n9 A+ Q: W, }
Note: 64-bit platforms are not yet officially supported; however, there is information about installing on 64-bit Vista and XP in the Forum.
1 h4 @, o- G% ?9 H
2 F; v5 P9 n3 f6 v, o* BInstalling the Palm® Mojo™ SDK
% d, D6 L0 J% QNote: Do not install the SDK into the same directory as Palm Host.6 X6 M6 J' Z0 X9 X7 e! `8 f! A
4 B$ y. d/ J& D' z
Download the Win SDK./ @8 h) [- c x1 S1 o, ^9 ^
Make sure VirtualBox is not running before starting the Palm SDK Installer.
2 q% F$ l& _5 K; b7 G0 d. mDouble-click the file to start the Palm SDK Installer, which guides you through the installation process.
+ [7 T: g) _% zOpen the Palm Emulator, either by double-clicking the icon on the desktop or from Start > All Programs > Palm >SDK > Palm Emulator.. g: x0 H" z# w- ]% G
The first time the Palm Emulator runs, there is a delay while VirtualBox builds the virtual machine.9 p7 e4 f% y. g& \6 d- H
Click OK to dismiss the dialogs that appear.
k* e) O5 Q* kCreate or choose a directory to use as your development workspace.% `) M( e9 ` E+ C0 e( ]( \
Open a command-line window (Start > Run > cmd) and type palm-generate to verify that the tools are installed. - q$ Y- |# i! B0 T
If help information appears, the tools are correctly installed./ V( m$ j- s* z: T- [1 j
If palm-generate is not recognized as a command, the tools are not correctly installed.
( ~8 q) { L$ u% z$ T" y9 q6 SIf java is not recognized as a command, Java is not correctly installed./ n* C6 `7 Q) @# ?% h Q) a; k
The SDK includes sample code to help you understand how to write webOS applications. For more information, refer to the Samples page.+ l: C8 `$ y x0 v# E6 D/ A, h- m6 E8 v$ o
: h# b$ k( F9 t( X4 DRunning the Palm Emulator
5 V2 Y# p4 o8 J9 _6 ^& y/ d1 yTo 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.6 C n3 _6 ~) t* p' u: h/ ~
: K7 v) [) C8 Q. [) l- r+ }. X
For more information about the emulator, see the Emulator page.( U1 O! E- C& ^& g. g* C, n* ]% q
! R, H- H$ b) e5 H/ WAdditional Information
, @" I1 S! B4 G7 gIf you're not sure where to go next, look at the following sections for more information.( u# K' _) \0 `9 w9 o+ j
# l9 C Q1 O4 J0 yHello, World!+ a/ W3 G0 p1 `# a% H D& y" Z
For a tutorial that will help you write your first webOS application, visit the Hello, World page.6 s @2 E$ m6 X
2 X- b8 F0 ^: [. o; t* r# Z
Command-Line Tools
+ S# m* l( V; h. xThe Mojo SDK includes the following command-line development tools:1 v! O: A4 L) b3 o. U) @
- _ v0 [1 A1 P/ b# h% F
palm-generate---for generating basic applications and scenes' ~ j# z' y- c; c2 c
palm-package---for packaging a palm application before installation on the emulator or a device
( ~, f! }1 }, [$ q) @& Mpalm-install---for installing a packaged application on the emulator or a device6 o+ K2 l. w" W8 b. j& x
palm-launch---for launching an installed application on the emulator or a device7 B# a9 f9 g$ R$ G% R% j
For more information about the Command-Line Tools, see the Command-Line Tools page.4 X4 J# k) p. P9 c1 e0 p; e4 Z
) ` K8 p) Z- P4 U
_# G) T- K4 t' Z r3 k, O. r7 J! d% S5 i
Eclipse Plug-Ins
" W8 z4 Z" W8 o1 K) \' c. mThe 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. |
|