Install the Palm® webOS™ SDK on Ubuntu
1. Update the Package Repository Information
-
Update the Package Repository Information to /etc/apt/sources.list:
If you are using 8.04 (Hardy Heron):
deb http://download.virtualbox.org/virtualbox/debian hardy non-free
If you are installing on 9.04 (Jaunty Jackalope):
deb http://download.virtualbox.org/virtualbox/debian jaunty non-free
-
Download and register the Sun public key for apt-secure:
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add
-
Refresh the package index files:
sudo apt-get update
2. Install Java
Download and install the Sun Java Runtime Environment (JRE). The SDK is incompatible with the default Ubuntu GNU Compiler for Java (GCJ). Example:
sudo apt-get install sun-java6-jre
From time to time, typically after installing Ubuntu system updates, the default Java setting can get changed to something other than sun-java6. Ensure that sun-java6-jre is set as the default by typing 'sudo update-alternatives --config java', and select '/usr/lib/jvm/java-6-sun/jre/bin/java' if it is not already starred as the default. This may need to be done again in the future if the palm-emulator stops working or tells you that the default Java setting is not correct.
3. Install VirtualBox 3.0
The Palm emulator is built on VirtualBox, virtual machine software that you can download free from Sun Microsystems. VirtualBox is required before installing the Palm webOS SDK.
Installing or Upgrading VirtualBox
If you are upgrading from a previous version of VirtualBox, follow the instructions to "Uninstall the Palm Emulator and Virtual Machine" on this page.
-
Install the new version of VirtualBox:
sudo apt-get install virtualbox-3.0
Note: If virtualbox-ose is installed (or suggested) instead of virtualbox-3.0, this is a sign that apt-get did not properly parse the packages from download.virtualbox.org and is instead trying to pull an old VirtualBox 1.5 binary from Ubuntu's own repositories. Make sure to register the repository key before doing the update.
4. Install ia32-libs (on 64-bit systems only)
If you are installing on a 64-bit system, perform the following additional step before installation:
sudo apt-get install ia32-libs
If you happen to have installed palm-novacom before installing ia32-libs, then you must restart palm-novacom:
sudo stop palm-novacom
sudo start palm-novacom
5. Install the Palm webOS SDK for Linux
and
If you are installing on a 32-bit system, perform the following additional step before installation:
sudo dpkg -i palm-sdk_1.3.5-svn234138-sdk117-pho368_i386.deb
sudo dpkg -i palm-novacom_1.0.46_i386.deb
If you are installing on a 64-bit system, perform the following additional step before installation:
sudo dpkg -i --force-architecture palm-sdk_1.3.5-svn234138-sdk117-pho368_i386.deb
sudo dpkg -i --force-architecture palm-novacom_1.0.46_i386.deb
Note: If you experience installation issues, try a clean install. To uninstall, follow uninstall instructions.
What's Next?
- Try the Build Your First App Tutorial
- Explore the SDK Sample Projects
- Use Eclipse? Install the Palm webOS SDK Eclipse plug-in