Hello World
This tutorial will help you create the infamous Hello World app.
I have attached a copy of the java and the class file.
To begin, you will need to install the latest JDK. You can find the latest version at java.sun.com. (I am using JDK 1.3.1_03.)
After install is complete reboot your system.
Create a folder in your c:\jdk1.3.1_03 folder called source. (This is where you will keep all your .java files) Create a folder in your c:\jdk1.3.1_03 folder called classes. (This is where you will keep all your compiles .class files)Open notepad.
Enter the following
import java.io.PrintStream;class HelloWorld
{
HelloWorld()
{
}
public static void main(String args[])
{
System.out.println("Hello World!");
}
}
Save this file as HelloWorldApp.java in the c:\jdk1.3.1_03\source folder. (Make sure it didn't get called HelloWorldApp.java.txt)
Open a command prompt and type the following lines hitting enter after each line.
path = c:\jdk1.3.1_03\bin
cd \
cd jdk1.3.1_03\source
javac -d c:\jdk1.3.1_03\classes HelloWorld.java
Hit Enter.

If compiling is successfull the command line will return without any errors like above.
Next, type the following line.
cd ..
cd classes
java HelloWorld

If successfull you will see Hello World!.
Transferring Hello World to the Zaurus
Next, using windows explorer, open the c:\jdk1.3.1_03\classes folder and copy the file into you documents view of you Qtopia desktop for upload to the Sharp. Click the Sync All button.
If prompted for a location select Internal Storage. (You will only be prompted if you have added a CF, SD, or MMC card.)
On the Zaurus open a Termal shell on the Zaurus.
Enter the following.
cd Documents/application/octet-stream
evm HelloWorld
Then hit the return key
If successful you should see the following.