PDK Tools
This section provides information about Plug-in Development Kit tools. These include tools for uninstalling your application from the device, transferring files to the device, browsing the device, logging into the device, and uninstalling the PDK from your host PC.
In this section:
- Uninstalling Your Application from the Device
- Using pscp or scp to Transfer Files to the Device
- Browsing the Device
- Logging into the Device
- Uninstalling the PDK
See also Using Eclipse as a Front-end for GDB Debugging.
Uninstalling Your Application from the Device
To uninstall your application from the device:
-
On your device, hold down the orange button key and tap your application's icon.
-
Tap the Delete button.
Using pscp or scp to Transfer Files to the Device
Windows
On Windows, you can use the pscp (PuTTY Secure Copy) utility that comes with the PDK to transfer files from the host PC to a folder on the device using an SSH connection. You would use pscp at the command line.
Syntax:
pscp -scp -P 10022 -pw "" <source-file> root@localhost:/<path>/<to>/<folder>
Example:
pscp -scp -P 10022 -pw "" simple root@localhost:/media/internal
The above example transfers the simple executable (sample application) to the /media/internal folder on the device. The port (-P) is 10022 and an empty string ("") is entered for the password (-pw).
Mac
On the Mac, use scp to transfer files. Launch the Terminal application, then, at the command line, type the command scp. It is used in the same way as Windows except without 'pscp' and without the '-pw' option. After entering the command, you are prompted for the password. Press ENTER and the file is transferred.
Browsing the Device
You can use the nova-browser utility (requires Java JDK or JRE 1.6 installed) to browse folders and files on the device.
-
Make sure the device is USB connected.
-
Open a command prompt (Windows), or launch the Terminal application (Mac).
-
On the Mac, type
"export PATH=$PATH:/opt/PalmPDK/bin"and pressENTER. This puts the development tools in your path. -
Run
nova-browser. The following window appears:
You can browse folders and files as well as get or save files (see File and Get menus):
Logging into the Device
The Palm PDK comes with utility programs for logging into the device:
-
On Windows, use the PuTTY program — a terminal emulator application which acts as a client for the SSH protocol.
-
On the Mac, use the SSH program.
Windows
Note: Before you can use PuTTY (below), you need to run "pdk-device-install install" from a command-line prompt while the device is connected. This script installs a SSH daemon on your device that you can use to get shell access and that sample scripts use to copy files to the device.
To log into the device from Windows:
-
On your host PC, launch PuTTY: Start > All Programs > HP webOS > webOS PDK > Putty. The PuTTY application window opens:

-
In the Host Name (or IP address) text box, enter
"root@localhost". -
In the Port text box, enter
"10022". -
Click Open. A Linux shell opens.
-
At the password prompt, press
ENTER(empty string).
Mac
To log into the device from a Mac:
-
Launch the Terminal application.
-
At the prompt, type
"ssh –p 10022 root@localhost"and press ENTER. -
At the password prompt, press
ENTER(empty string).
Uninstalling the SDK and PDK
Windows
- Uninstall the SDK using the Control Panel's Add/Remove Programs utility.
Mac
-
Open the Mac Disk Image:
Palm_webOS_SDK<version>.dmg.If you did not save the previously downloaded Disk Image, you can download and run the uninstall script.
-
Double-click the
uninstall-previous-sdk.commandscript. -
Answer "yes" to the prompt.
-
Enter your administrator password.
