Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts

Monday, July 6, 2009

Running a simple Java Program in PDA

The PDA which im using is Motorola MC55.I was able to run a simple java program successfully after number of attempts.The things which i have done are

1.Check whether IBM J9 is installed or not.If not install.
2.Write java program in any IDE or notepad in your PC. (SamplePDA.java)

import java.awt.*;
public class SamplePDA {


public static void main (String [] args) {

Frame frame = new Frame ("Main Screen");
Label jl = new Label("My First PDA program..");

frame.add(jl);
frame.setSize(180,80);
frame.setVisible(true);

System.out.println("My First PDA Program..");
}

}

3.Compile the program with JDK1.4 or below.

4.Create a jar file with the class file.(SamplePDA.jar)

5.Create a shortcut file.(sample.lnk)

255#"\Program Files\J9\PPRO10\bin\j9.exe" "-jcl:ppro10" -cp \Sample\SamplePDA.jar SamplePDA


6.Sync the PDA and place the jar in particular location you want.I have placed the SamplePDA.jar in Sample folder.

7.Place the shortcut file(sample.lnk)on the start menu,so that we can execute
application from the start menu.

8.Click the shortcut file(sample.lnk) to run the application.

9.Now you will see a Frame displaying "My First PDA program".

When i tried to use Swing components it shown some error.!!!

Monday, March 30, 2009

Installing WEME (IBM WebSphere Everyplace Micro Environment)

Installing IBM WebSohere Everyplace Micro Environment(WEME) on windows Mobile 6.1

1.Sync the PDA (in my case Motorolla MC55) to your PC using Active sync

2.Double click the exe file which you have downloaded from the IBM site

in my case its weme-wm2003-ppr010-5.7.2-p-20050304-1734xxx.exe

3.Select the language

4.Click next and accept the s/w license agreement,then click next.

Now the WEME is installed in your PC, the installer ask you to sync your PDA to install in it.

5.Click Continue
   In the PDA it will ask you where you want to install choose the location and click install. Thats it installation finished.

To check whether its installed correctly, go to Program files ,search for folder with the name J9.then inside j9 i.e J9/PPR010/examples select a file to check whether its working properly.