Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6440

Cannot pass "classpath" argument from rmic to jvm

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JDK
    • Windows XP,

    Description

      When I use the rmic tool from HDK, I got the following warning:
      " WARNING: classpath is specified. For proper operation the same classpath should be specified in VM arguments. This is a limitation of current RMIC implementation."

      But when I try to specify the classpath arguments to VM, I failed

      I've tried the following commands:

      1,Command:
      bin\rmic.exe -v1.2 -cp C:/rmihello -J"-classpath C:/rmihello" Hello
      Error:
      Unknown option -classpath C:/rmihello
      Use java -help to get help on command line options

      2,Command:
      bin\rmic.exe -v1.2 -cp C:/rmihello -J "-classpath C:/rmihello" Hello
      Error:
      rmic.exe crashed!

      3, Command:
      bin\rmic.exe -v1.2 -cp C:/rmihello -J-classpath C:/rmihello Hello
      Uncaught exception in main:
      java.lang.NoClassDefFoundError: C:\hdk\lib\tools/jar;C:\hdk\jre\lib\tools/jar
      Caused by: java.lang.ClassNotFoundException: C:\hdk\lib\tools.jar;C:\hdk\jre\lib\tools.jar
      at java.net.URLClassLoader.findClass(URLClassLoader.java:907)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:488)
      at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:870)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:267)
      FAILED to invoke JVM.

      But the command
      "bin\rmic.exe -v1.2 -cp C:/rmihello -J-verbose Hello"
      can run successfully!

      Attachments

        Activity

          People

            Unassigned Unassigned
            lucaca Jonathan Lu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: