1 Reply Latest reply: Nov 29, 2008 1:54 PM by 843849 RSS

    Running executable

    843849
      Hello,

      I'm attempting to run executable jar in device emulator, but I'm having some difficulty. I have broken the invocation to run executable into 2 files: MyApp.lnk and args.txt.However, I'm receiving the following error:

      java.lang.ClassNotFoundException: Files\Company
      at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
      at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
      at sun.misc.Launcher$4.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Unknown Source)
      at java.security.AccessController.doPrivileged(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.CVM.runMain(Unknown Source)

      Here's what I have in the 2 files:

      MyApp.lnk:
      255#"\Program Files\Company Name\AppName\bin\cvm.exe" -f "\Program Files\Company Name\AppName\args.txt"?\Program Files\Company Name\AppName\bin\IconsLib.dll, -101
      args.txt
      -Xbootclasspath/a:"\Program Files\Company Name\AppName\database\jsr169.jar" -classpath "\Program Files\Company Name\AppName\MyApp.jar" MyApp.Main
      Any help is appreciated
        • 1. Re: Running executable
          843849
          Hello,

          I just wanted to give an update on some the changes that were made to correct the problem. I changed to using relative paths. Here's what was done to the args.txt file:
          -Xbootclasspath/a:".\\database\jsr169.jar" -cp "\.MyApp.jar" myapp.Main
          The error I'm receiving now is:

          java.lang.ClassNotFoundException: myapp.Main
          at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
          at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
          at sun.misc.Launcher$4.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Unknown Source)
          at java.security.AccessController.doPrivileged(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.CVM.runMain(Unknown Source)

          any help is appreciated.

          Edited by: wrappingduke on Nov 29, 2008 11:53 AM