Skip to main content

Personal Profile for WM 6

8 replies [Last post]
wrappingduke
Offline
Joined: 2008-01-23

Hello,
I am attempting to migrate an application that ran on Windows Mobile 5 to WM6. The app ran Personal Profile PhoneMe Advanced WM 5 w/out a hitch. As a result, I downloaded and installed(i.e. ported the necessary PhoneMe files/folders such as bin and lib) Personal Profile for WM 6 on the WM 6.1.4 emulator but now I am receiving some errors.
When the app is initially ran, I receive an error stating the class for the form shown in the app can't be found(i.e. NoClassDefFoundError). However, any subsequent runs of the app only shows the Java Console as blank w/ no errors. That is, the Java console appears instead of the app.
Any help to resolve this issue would be appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong Guest
Offline
Joined: 2010-11-03

On 12/11/2010 5:09 PM, forums@java.net wrote:
> Hello,
>
> I am attempting to migrate an application that ran on Windows Mobile 5 to
> WM6. The app ran Personal Profile PhoneMe Advanced WM 5 w/out a hitch.
> As a
> result, I downloaded and installed(i.e. ported the necessary PhoneMe
> files/folders such as bin and lib) Personal Profile for WM 6 on the WM
> 6.1.4
> emulator but now I am receiving some errors.
>
> When the app is initially ran, I receive an error stating the class
> for the
> form shown in the app can't be found(i.e. NoClassDefFoundError). However,
> any subsequent runs of the app only shows the Java Console as blank w/ no
> errors. That is, the Java console appears instead of the app.
>
> Any help to resolve this issue would be appreciated.

Hi wrappingduke,

I think you have a problem with the downloaded version of phoneME
Advanced or your installation of the version. What is the exact URL or
Web page that you used to download phoneME Advanced for your WM 6.1.4
emulator?

I'm guessing you are missing some files when you tried to download or
install that version--probably something is missing (maybe a JAR file)
in your lib directory.

Hinkmond

wrappingduke
Offline
Joined: 2008-01-23

Hi Hinkmond,
Thanks for the response. It is appreciated. The url to download is http://davy.preuveneers.be/phoneme/?q=node/10. I then chose the zip file phoneME Advanced - Personal Profile b168 for Windows Mobile 6. From this zip file, the "bin" and "lib" folders were copied to the same location as the .lnk and executable jar.
Any help is appreciated.
Jim

davyp
Offline
Joined: 2007-01-03

Hi Jim,

First of all, make sure there is no instance of the phoneME running in the background (check
the active applications, and kill the phoneME task if necessary).

Second, the exception you got seems to hint that the classpath is not set up correctly. Copying the
files like you did is not what I would recommend, but it should work (if you are not mixing binaries
for different platforms). Can you show us the contents of the lnk file and the output on the console?

You can log all output to console and files by appending the following options to cvm.exe:

"-Xopt:stdioPrefix=/storage card,useConsole=true"

Make sure you use quotes to distinguish parameters with spaces (adjust the path if necessary).

Davy

wrappingduke
Offline
Joined: 2008-01-23

Hi Davy,
Thanks for the response. I appreciate it. I apologize for the late response. I got pulled away from this issue. It appears that phoneMe is not running in the background of the Emulator. I think that you maybe right that the error may result of the classpath not being set correctly. However, the splash screen for the application appears. After the splash screen is shown and the first dialog is attemtped to be displayed, only then is the error is returned on the first run of the app only. All subsequent runs shows a blank Java Console with no results in the cmd console as well. Here's the error received:

CertVerify: \Storage Card\bin\cvm.exe trust = 2
CertVerify: \Storage Card\bin\cvmi.dll trust = 2
CertVerify: \Storage Card\bin\pocketpcawt.dll trust = 2
CertVerify: wcecompat.dll trust = 2

Java.lang.NoClassDefFoundError: frmaccount_search.dlgAccount
At MyApp.Main.initComponents(Main.java: 49)
At MyApp.Main.<init>(Main.java: 33)
At MyApp.Main$2.run(Main.java: 110)

Here's what's in the shortcut file:
255#"\Storage Card\bin\cvm.exe" -Xbootclasspath/a:"\Storage Card\database\jsr169.jar" -classpath "\Storage Card\MyApp.jar" MyApp.Main

Lastly, the following is returned in each mouse click of the emulator:
OEMIoControl: Unsupported Code 0x1010058 - device 0x0101 func 22

davyp
Offline
Joined: 2007-01-03

Hi

I don't see any mistakes in your setup. The verification of the exe and dll files is normal
and this usually only happens once. You can disable this step by modifying some
registry entry.

I cannot explain the NoClassDefFound error, nor the last OEMIoControl error. It seems
you are using quotes at the right places to take care of the spaces in the pathnames.

If you can make available the application, I can try it out for myself to see if I can reproduce
the problem and figure out what is causing the problem.

Which WM 6.1.4 emulator are you using? The professional or the standard one?

Regards
Davy

wrappingduke
Offline
Joined: 2008-01-23

Hi Davy,
Thanks for your help. I really appreciate it. I am using WM Pro on Vista Home Premium . Sure, I can provide the app. Can you provide an email address?
James

davyp
Offline
Joined: 2007-01-03

I think davyp@dev.java.net will do just fine

Davy

wrappingduke
Offline
Joined: 2008-01-23

Hi Davy,
Thanks for your reply. Let me do some further testing before I waste your time. I forgot that Thinlet for Personal Profile and owthinlet(wrapper for thinlet) is included in the form that's causing the NoClassDefFoundError to occur albeit both jars are included in the app and hence the lib folder. Moreover, the jars were compiled with JDK 1.4.
Jim