|
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.
: d1 B# i6 f1 P; X D" G/ g# {6 s; O% A- U5 U
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. h4 a' A1 K! s! @
* r+ l9 U/ u1 `! z: {$ i
Before You Install the Mojo SDK
) t. T: [9 p3 dBefore installing the webOS™ SDK, perform the following steps:3 n0 a, j( P" X
- v( _! l: b3 `9 p% DInstall Java
; }& [3 V4 e& bDownload and install the latest version of Java. To verify that Java is installed. go to the Command Prompt and type:1 X. t$ @1 u2 h7 J) }) W* l9 H
java -version2 ?7 E! k2 u7 K
If Java is installed, Java version information appears.
+ W) R3 Y) G$ dInstall Safari 4
) E/ x/ v; |& R9 _3 X% eThe Safari browser includes a number of features that are useful for debugging webOS applications.
! T: A, s$ c$ c& u2 ]: X% iInstall VirtualBox
8 L; p1 Z* _6 z% \! K" RThe 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.( _' \! N9 A0 ^5 \) w2 U0 [4 @: ?
Note: 64-bit platforms are not yet officially supported; however, there is information about installing on 64-bit Vista and XP in the Forum.
6 ], @ y* U# q1 o, S; H& ~
2 c% t8 S7 c4 c/ ?( F3 LInstalling the Palm® Mojo™ SDK
8 w0 I- E: m; NNote: Do not install the SDK into the same directory as Palm Host." H: l" c6 F3 L
9 P" ^( u2 D( T1 Q8 r2 NDownload the Win SDK.
0 `0 K: ]& c. H' |$ S' AMake sure VirtualBox is not running before starting the Palm SDK Installer.& [' h& j* `1 G7 l+ R! u8 }
Double-click the file to start the Palm SDK Installer, which guides you through the installation process.+ v H$ v. u4 i+ n0 Z
Open the Palm Emulator, either by double-clicking the icon on the desktop or from Start > All Programs > Palm >SDK > Palm Emulator.
* s2 a* g; \; ~% KThe first time the Palm Emulator runs, there is a delay while VirtualBox builds the virtual machine.; G' m9 c1 B" d' a _* Z# u5 T* p
Click OK to dismiss the dialogs that appear.
# r" W: y; I, e. WCreate or choose a directory to use as your development workspace.( c% T# l6 }* c, K
Open a command-line window (Start > Run > cmd) and type palm-generate to verify that the tools are installed.
2 P% H3 W4 w4 g; e: P* iIf help information appears, the tools are correctly installed.6 P5 }# u% R" L9 U" g
If palm-generate is not recognized as a command, the tools are not correctly installed.5 {2 o P2 l: v9 L" o& X
If java is not recognized as a command, Java is not correctly installed.8 v: P2 S; {) @" D7 O! ^5 y( q# D- F$ w
The SDK includes sample code to help you understand how to write webOS applications. For more information, refer to the Samples page.
, [3 e; h3 l0 m) n( R! p
7 x! L% |$ s7 p' QRunning the Palm Emulator# S. X( i; l6 n% {% k. R$ X
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.
( S& F* G7 y# y3 f3 U/ _( g, U! j$ i$ n
For more information about the emulator, see the Emulator page.
% d D) H- f4 ]; r# o% m. e
0 A# k4 y" @2 z; u8 j3 T! MAdditional Information% [4 x5 r# V5 s5 E3 `
If you're not sure where to go next, look at the following sections for more information.6 H; |/ S' }# X, }
7 t3 d; c$ u0 z2 gHello, World!2 U9 }. o% |5 j+ `' X
For a tutorial that will help you write your first webOS application, visit the Hello, World page.. k: \7 B* W k
; H% C$ X5 x( X- j& S# k
Command-Line Tools
# E* F- H6 o& KThe Mojo SDK includes the following command-line development tools:3 Z& J2 E0 d( G2 |9 E
: N% k2 Z$ l/ Y/ o" Xpalm-generate---for generating basic applications and scenes
% h8 ^, _! V! {1 p2 bpalm-package---for packaging a palm application before installation on the emulator or a device2 b- ]* f+ N8 Y/ j6 O3 w% l: F5 e
palm-install---for installing a packaged application on the emulator or a device
8 v" s8 _0 ^% ^# Gpalm-launch---for launching an installed application on the emulator or a device
& S9 n; x& q. L1 d! H3 ~: _2 `& NFor more information about the Command-Line Tools, see the Command-Line Tools page.0 h$ m& L# d3 k8 ?+ B! w
( R. l H. u, q7 X8 V. n8 p
& L3 N6 I4 j3 k* d( x( Q8 K3 R' L& N( b( S Z
Eclipse Plug-Ins7 c8 f2 V6 _: B. v, W0 X* N2 s' A: Z0 F
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. |
|