Skip to main content

Phone-me on a DELL Axim X51v PPC

6 replies [Last post]
dfhz
Offline
Joined: 2007-05-04
Points: 0

Hi, I've installed on a DELL Axim X51v (WM5-xcale) the CAB file available from Mr Davy's site (http://www.cs.kuleuven.be/~davy/phoneme.php) for Pocket PC 2003 (PhoneME CDC rev4709) and although the installer finish successfully , I'm not sure about how to run it. As the HelloWorld example link at Davy's site seems to be broken, I've tried running cvm with the standard HelloWorld example (I have phoneme cdc running well on a Ubuntu-linux x86) but it seems it doesn't work, how can I try this on the PDA without a command line to run cvm with arguments? Should it recognize the jar extension? Is it necessary to build a test program that runs cvm with arguments as a command?

Maybe it is necessary to compile from the sources to make it run?

Thank for your help.
David

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Thanks for your help,
> I've tried several possibilities such as:
> 49#"\phoneme\cdc\bin\cvm" DrawString > test.txt 2>&1
> 91#"\phoneme\cdc\bin\cvm" -Djava.class.path=.\ HelloWorldFenster > \output.txt 2>\output2.txt
> 80#"\phoneme\cdc\bin\cvm" -Djava.class.path=.\ HelloWorldFenster > \output.txt 2>&1
> 91#"\phoneme\cdc\bin\cvm" -Djava.class.path=\phoneme\cdc\ HelloWorldFenster > \output.txt 2>&1
>
> but I'm not able to make it works. I've also tried with a "demoClasses" example that works on linux:
> 71#"\phoneme\cdc\bin\cvm" -cp \phoneme\cdc\democlasses.jar basis.DemoFrame
>
> but no way! Maybe a specific compilation is needed but as output redirection to a file does not seem to work I'm not sure of where the problem is (when I click on a .lnk file that points to cvm nothing happens, but that works well with other applications such as \windows\calc.exe).

Try putting your class files or JAR files in the toplevel directory and
use "-cp .\" or "-cp .\JARFILENAME.jar". Don't put the class files or
JAR file in any level lower than the toplevel "/"

Also, as Davy pointed out the NN number doesn't really matter.

One final thing to try: Make sure the *.lnk file is in the toplevel
device directory. Launch it only from the toplevel directory "\" of
your device.

Hope this helps!

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

dfhz
Offline
Joined: 2007-05-04
Points: 0

Thank you Hinkmond and Davy, I've followed your recomendations and it finally works! (with PP). Now I'm going to continue testing the platform to see if we can use it for our project, and comparing it with creMe to see performance differences.

Thanks again
David

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi, I've installed on a DELL Axim X51v (WM5-xcale) the CAB file available from Mr Davy's site (http://www.cs.kuleuven.be/~davy/phoneme.php) for Pocket PC 2003 (PhoneME CDC rev4709) and although the installer finish successfully , I'm not sure about how to run it. As the HelloWorld example link at Davy's site seems to be broken, I've tried running cvm with the standard HelloWorld example (I have phoneme cdc running well on a Ubuntu-linux x86) but it seems it doesn't work, how can I try this on the PDA without a command line to run cvm with arguments? Should it recognize the jar extension? Is it necessary to build a test program that runs cvm with arguments as a command?
>
> Maybe it is necessary to compile from the sources to make it run?

Try this:

On your PC, create a text file called .lnk with this format:

NN#"\bin\cvm" -Djava.class.path=.\ > \output.txt 2>&1

Where you replace NN with the number of characters in the actual command
line and with the name of the class you are trying to run.

Example (assuming your pMEA CDC \bin and \lib are on the toplevel
directory of your device):

hello.lnk
---
40#"\bin\cvm" -Djava.class.path=.\ HelloWorld > \output.txt 2>&1

Then use ActiveSync to sync the hello.lnk file to your device and also
sync your app class file to the toplevel directory of your device.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

dfhz
Offline
Joined: 2007-05-04
Points: 0

Thanks for your help,
I've tried several possibilities such as:
49#"\phoneme\cdc\bin\cvm" DrawString > test.txt 2>&1
91#"\phoneme\cdc\bin\cvm" -Djava.class.path=.\ HelloWorldFenster > \output.txt 2>\output2.txt
80#"\phoneme\cdc\bin\cvm" -Djava.class.path=.\ HelloWorldFenster > \output.txt 2>&1
91#"\phoneme\cdc\bin\cvm" -Djava.class.path=\phoneme\cdc\ HelloWorldFenster > \output.txt 2>&1

but I'm not able to make it works. I've also tried with a "demoClasses" example that works on linux:
71#"\phoneme\cdc\bin\cvm" -cp \phoneme\cdc\democlasses.jar basis.DemoFrame

but no way! Maybe a specific compilation is needed but as output redirection to a file does not seem to work I'm not sure of where the problem is (when I click on a .lnk file that points to cvm nothing happens, but that works well with other applications such as \windows\calc.exe).

Any ideas?

thanks again.
David

davyp
Offline
Joined: 2007-01-03
Points: 0

Hi,

First of all, I have put the hello example back online. Thanks for the notification. You should unzip the hello.zip in the root of your filesystem on your PDA. If you have installed the PhoneME CAB on the PDA itself, and not on a storage card, it should be installed in \phoneme. Otherwise you may need to modify the paths in the hello.lnk startup file of the hello example.

After having unzipped the hello example, you should find it \phoneme\hello. There is an executable to show you a simple dialog window with a message.

I also noticed you appear to be using CDC. As CDC does not provide AWT among other things, some applications, including the hello example, will not work. As the Personal Basis Profile port is currently not working, you need to install the Personal Profile CAB to get this to work. Note that also in PP, not all AWT features work.

Just a few remarks on how to compile and run the application yourself:

* The link file (.lnk) indeed start with a number (called NN by Hinkmond). In my experience, I noticed it does not really matter if the length of your command corresponds to this number. I always choose 255.

* Java files should always be compiled with -source 1.4 -target 1.4 to make sure that the version of the class files are understood by the VM. The CVM has troubles swallowing class files compiled with JDK 1.5 or 1.6.

* As the PocketPC does not have a notice of "the current directory", it always interpretes paths from the root, which means you always have to specify the classpath if your application resides in a subdirectory. Hinkmond suggested to use the -Djava.class.path option, I always use "-cp" which seems to work fine.

* I also noticed that during the build process of the PhoneME sources, a copyright statement is added to the manifest file of democlasses.jar. It appears that the CVM does not like this. In fact, the democlasses.jar has other issues as well. Due to the "current directory" issue, the CVM does not find the required images. To get the screenshots shown on my website, I had to uncomment the Graphics, Font and Game demos in the basis/DemoFrame.java file and recompile the sources again.

I hope this helps.

Davy

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi,
>
> First of all, I have put the hello example back online. Thanks for the notification. You should unzip the hello.zip in the root of your filesystem on your PDA. If you have installed the PhoneME CAB on the PDA itself, and not on a storage card, it should be installed in \phoneme. Otherwise you may need to modify the paths in the hello.lnk startup file of the hello example.

Thanks, Davy! Those were good remarks also.

Hinkmond

> After having unzipped the hello example, you should find it \phoneme\hello. There is an executable to show you a simple dialog window with a message.
>
> I also noticed you appear to be using CDC. As CDC does not provide AWT among other things, some applications, including the hello example, will not work. As the Personal Basis Profile port is currently not working, you need to install the Personal Profile CAB to get this to work. Note that also in PP, not all AWT features work.
>
> Just a few remarks on how to compile and run the application yourself:
...

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net