I am using Sun CDC Toolkit 1.0. i need to specify a jar in the classpath whose APIs are used by the application at runtime. i have tried using the "-classpath" option, but the APIs in the jar are not being found and i get a "java.lang.NoClassDefFoundError:" error.
deleteme.jar and POC.jar are both present in the current directory from where the command is being run.
The UserGuide mentions using "-classpath:" followed by the jar names, but this option is not recognized by the emulator.
Any pointers are greatly appreciated.
Thanks in advance,
It turns out that the correct way to specify what i want is as follows:
D:\softwares\CDCTK10\bin\emulator.exe -classpath -Xdevice:DefaultColorPhone -cp POC.jar;deleteme.jar Main
where Main is the fully qualified classname of the main application class that is present in POC.jar