Programming for Palm OS/SuperWaba

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Download the SuperWaba SDK[edit | edit source]

You can download it from here: *404 error

If it requires you to log in, either create an account (free) or use an account from

Unpacking the SDK[edit | edit source]

If you're running Linux, you can rename the .exe to .rar and use unrar to unpack the SDK.

unrar x GPL_SuperWabaSDK.rar

Setting Up Eclipse[edit | edit source]

Create a new Java Project in Eclipse "from existing source", with the directory: $SUPERWABA/src/java/

Add an External Archive to the Build Path: $SUPERWABA/lib/SuperWaba.jar.

After some fiddling, my .classpath ended up like this:

<?xml version="1.0" encoding="UTF-8"?>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry excluding="waba/|superwaba/bin/" kind="src" path=""/>
	<classpathentry kind="lib" path="/home/user/SuperWaba/lib/SuperWaba.jar"/>
	<classpathentry kind="lib" path="/home/user/SuperWaba/lib/vm/applet/Waba_only.jar"/>
	<classpathentry kind="output" path="superwaba/bin/"/>

Running the Samples[edit | edit source]

Run:Run... Java Application

  • Main class: waba.applet.Applet
  • Arguments: superwaba.samples.ui.gadgets.UIGadgets

Our First Program[edit | edit source]

package superwaba.samples.helloworld;

import waba.ui.Label;
import waba.ui.MainWindow;

public class HelloWorld extends MainWindow {
	public HelloWorld() {
		super("HelloWorld!", TAB_ONLY_BORDER);
	public void onStart() {
		add(new Label("My Hello World Program"), CENTER, CENTER);

Run this program the same way you would one of the sample applications.