Skip to main content

Feedback for 'PhoneME Advanced for PocketPC 2003'

19 replies [Last post]
mores
Offline
Joined: 2005-01-21

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davyp
Offline
Joined: 2007-01-03

The phoneME.exe application does nothing more than take
the full path of the selected jar, and prepend the
"cvm.exe -jar " commands to run the app.

Davy

xyzzy
Offline
Joined: 2006-08-30

> In an effort to center the application I tried
> setLocationRelativeTo( null ) only to find out that
> is not implemented and it threw an exception to the
> java console. ( Fine, I can try something else. )
>
> But now I have no way to end my application.
> It does not show up in the list of running programs:
> http://www.geocities.com/mores/ppc/running.gif
>
> And I can not run a second instance of cvm:
> http://www.geocities.com/mores/ppc/error.gif
>
> Is resetting the only thing left to do ?
> Why would it not show up in the list of running
> programs ?

There is a Remote Process Viewer in the eMbedded Visual C++ IDE. Does it let you kill the process?

Dean

mores
Offline
Joined: 2005-01-21

I gave up and reset my device. This time I installed the CAB. ( thanks ) I'll have to try the Remote Process Viewer later ( perhaps sooner than later ).

I can start up the Hello app and it will stay open until I close it.

I have been testing an app that I wrote and the vm just seems to die after about 40 seconds. Can the cvm be run in debug mode to find out why it is dying ? Or is the right way to use the Remote Process Viewer and trace it ?

xyzzy
Offline
Joined: 2006-08-30

> I gave up and reset my device. This time I installed
> the CAB. ( thanks ) I'll have to try the Remote
> Process Viewer later ( perhaps sooner than later ).
>
> I can start up the Hello app and it will stay open
> until I close it.
>
> I have been testing an app that I wrote and the vm
> just seems to die after about 40 seconds. Can the cvm
> be run in debug mode to find out why it is dying ? Or
> is the right way to use the Remote Process Viewer and
> trace it ?

If you have a debug build, then you can debug it using the Visual C++ debugger. For example, open cvm.exe in the IDE, then add cvmi.dll as an additional DLL. Also, I believe there is a feature, where if \OUT.txt and \ERR.txt exist on the device, then stdout and stderr will be directed there.

Dean

mores
Offline
Joined: 2005-01-21

Thanks. I created \OUT.txt and \ERR.txt but output is still going to the Java Console.

I removed PocketConsole and now the java app will stick around longer than 40 seconds.

xyzzy
Offline
Joined: 2006-08-30

> Thanks. I created \OUT.txt and \ERR.txt but output is
> still going to the Java Console.
>
> I removed PocketConsole and now the java app will
> stick around longer than 40 seconds.

I don't know what Java Console or PocketConsole are, but maybe they are catching printf's to stdout. Output should also be mirrored to the files, not redirected in the Unix sense.

Dean

harisson
Offline
Joined: 2006-11-28

mores,

i've tested the PPC 2002 vm on my old Cassiopeia E-200F (french version with update pack 3.00), the title bar is visible over the windows bar and when moved, same bahaviour as you, it can't go above the Windows bar.

Hinkmond Wong

Thanks, harrison! I've been meaning to also test Steve's Pocket PC
build on my old PPC 2003 iPAQ, but your successful test result on an old
PPC 2002 Casiopeia is even better! (Woo, that device goes quick a ways
back and is probably a collector's item by now) ;-)

Nice to hear that the current CDC (in the phoneME Advanced project) at
least runs on it, but we'll have to see if we can fix the Title Bar to
behave better...

Hinkmond

phonemeadvanced@mobileandembedded.org wrote:
> mores,
>
> i've tested the PPC 2002 vm on my old Cassiopeia E-200F (french version with update pack 3.00), the title bar is visible over the windows bar and when moved, same bahaviour as you, it can't go above the Windows bar.
> [Message sent by forum member 'harisson' (harisson)]
>
> http://forums.java.net/jive/thread.jspa?messageID=205342
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>
>

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

vravl
Offline
Joined: 2009-02-12

Davy, you mentioned environment variables("[...]but you may need to modify some environment variables"). PhoneMe.exe works out of the box, so I could start any jar I tried, but invoking cvm via command line results in missing class files (at least that's what I guess, because the console window is destroyed quite quickly). I couldn't locate the sources of PhoneMe.exe within the repository, which would be quite helpful to set up my enviroment correctly.

davyp
Offline
Joined: 2007-01-03

There is nothing magic about calling cvm.exe, just set the classpath or jar
options like you would do on the desktop. There is only one catch: each
path to a jar or directory should be specified from the root (i.e. a full path).
And use double quotes in case you have spaces in the path name, e.g.:

\personal\bin\cvm.exe -cp "\storage card\test\hello\Hello.jar" hello.Hello

Davy

Hinkmond Wong

Hi Davy,

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond and Mores,
>
> I was able to compile the sources yesterday after installing eVC++ 3.0 and PocketPC SDK 2002. No other
> patches were needed. The builds are provided as is on my website:
>
> http://www.cs.kuleuven.be/~davy/phoneme.php

This is great! :-) I'll try it out and let you know how it is on a
PocketPC 2002 iPAQ...

Hinkmond

> Expect problems with the PP build as AWT is not complete, but I guess the CDC and Foundation bundles
> should work. I put a simple AWT HelloWorld application online as well, but you may have to change the .lnk
> file to change some paths.
>
> Davy
> [Message sent by forum member 'davyp' (davyp)]
>
> http://forums.java.net/jive/thread.jspa?messageID=198591
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>

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

davyp
Offline
Joined: 2007-01-03

Apparently Microsoft Embedded Visual C++ 4.0 is not compatible with PocketPC SDK 2002. I will have a look if
EVC++ 3.0 can do the trick.

However, I have no hardware lying around to test with, so even if it compiles I do not know if it will work.

Davy

Hinkmond Wong

Hi Davy,

phonemeadvanced@mobileandembedded.org wrote:
> Apparently Microsoft Embedded Visual C++ 4.0 is not compatible with PocketPC SDK 2002. I will have a look if
> EVC++ 3.0 can do the trick.

That sounds correct. We used to use eVC++ 3.0 with the Pocket PC SDK
2002 for our old Captain America builds for the Compaq iPAQs 4 years ago.

> However, I have no hardware lying around to test with, so even if it compiles I do not know if it will work.

I've got an old Pocket PC 2002 Compaq iPAQ that I can test a compiled
build with.

Let me know if you want me to do that.

Hinkmond

> Davy
> [Message sent by forum member 'davyp' (davyp)]
>
> http://forums.java.net/jive/thread.jspa?messageID=198375
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>

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

davyp
Offline
Joined: 2007-01-03

Hi Hinkmond and Mores,

I was able to compile the sources yesterday after installing eVC++ 3.0 and PocketPC SDK 2002. No other
patches were needed. The builds are provided as is on my website:

http://www.cs.kuleuven.be/~davy/phoneme.php

Expect problems with the PP build as AWT is not complete, but I guess the CDC and Foundation bundles
should work. I put a simple AWT HelloWorld application online as well, but you may have to change the .lnk
file to change some paths.

Davy

mores
Offline
Joined: 2005-01-21

Thanks for putting this together !

On the web site there are no instructions on how to install this JRE. ( I hope I just copy it into Program Files on the PPC )

Most programs for the Pocket PC use an installer, if no one is working on the installer perhaps that is something I could do....

davyp
Offline
Joined: 2007-01-03

Mores.

The zip file is what you get when you do "make bin", but I agree that such a file is not really suited for
installation on a Pocket PC. If I am not mistaken there is a tool called cabwiz in Visual Studio to create
cabinet files for easy installation. I previously used lcab and pocketpc-cab on Debian to automatically create
such packages. I will see if I can get them integrated in my build setup and put the cab files online.

Davy

mores
Offline
Joined: 2005-01-21

I have been testing the vm on PPC 2002.

I have been thinking where exactly should the coordinates 0,0 live.....

Currently when you run the hello program the window is placed in the physical screen position of 0, 0. This causes the title bar to disappear under the Windows bar ( See http://www.geocities.com/mores/ppc/hello.gif )

Once the window is moved it can never go above the Windows bar ( http://www.geocities.com/mores/ppc/hello2.gif )

So should the coordinates of 0,0 actually exist just below the Windows bar ?

mores
Offline
Joined: 2005-01-21

In an effort to center the application I tried setLocationRelativeTo( null ) only to find out that is not implemented and it threw an exception to the java console. ( Fine, I can try something else. )

But now I have no way to end my application.
It does not show up in the list of running programs:
http://www.geocities.com/mores/ppc/running.gif

And I can not run a second instance of cvm:
http://www.geocities.com/mores/ppc/error.gif

Is resetting the only thing left to do ?
Why would it not show up in the list of running programs ?

davyp
Offline
Joined: 2007-01-03

Mores,

Thanks for the feedback. It appears that PPC2002 behaves differently from PPC2003. On my Windows Mobile 2003
device, it shows the title bar of the application on top of the Window bar. After moving the window around, I get
the same behavior you mentioned (not covering the Window bar).

I can terminate the application by pushing the X close button, but it takes a few seconds to stop the VM. I do
not know why. Also, the "Hello" world application is shown in the list of "Running Programs" and I can stop
it there as well.

Davy