2 Replies Latest reply on Aug 4, 2008 11:47 AM by 843849

    Specifying classpath in Sun CDC Toolkit

      Hi All,

      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.
      D:\softwares\CDCTK10\bin\emulator.exe -classpath deleteme.jar -Xdevice:DefaultColorPhone -jar POC.jar
      java.lang.NoClassDefFoundError: deleteme.DeleteMe
      at Main.main(Main.java:15)
      at java.lang.reflect.Method.invoke(Method.java:302)
      at sun.misc.CVM.runMain(CVM.java:464)

      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,