Skip to main content

PhoneME Advanced Personal on Win CE v5: parameter file Problem

2 replies [Last post]
rgw21
Offline
Joined: 2010-07-25

Hi,

I am trying to use the parameter file in my shortcut, but it is not working, can anybody guide me?

the shortcut:
254#"\Flash Disk\phoneme\personal\bin\cvm.exe" -f "\Flash Disk\server.cfg"

and the server.cfg:
-Xbootclasspath/p:"\Flash Disk\jdbc.jar"
"-Xopt:stdioPrefix=/Flash Disk,useConsole=true"
-cp "\Flash Disk\hh2.jar;\Flash Disk\bsn\third.jar"
-Djava.library.path="\Flash Disk\bsn" "com.bisan.hh.Main"

I am running my app on Windows CE v.5, as i think it doesn't understand the space character because when i did some debugging (I moved the first 2 lines from the cfg file to the shortcut), i got the following error:

java.lang.ClassNotFoundException: Disk\bsn"
at java.net.URLClassLoader.findClass(URLClassLoader.java:234)
at sun.misc.Launcher$AppClassLoader.findClass(Launcher.java:604)
at java.lang.ClassLoader.loadClass(ClassLoader.java:361)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:420)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.CVM.runMain(CVM.java:518)

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

Hi

Could you check what happens if you change the double quotes for java.library.path to:

"-Djava.library.path=\Flash Disk\bsn"

(instead of -Djava.library.path="\Flash Disk\bsn").

My guess is that the WinCE command line parser does not see a double quote before
-Djava.library... and therefore splits at the next space, with the VM assuming that Disk\bsn" is
going to be the main class.

Davy

rgw21
Offline
Joined: 2010-07-25

It worked now after I changed the double quotes position, Thanks for your help