harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chuanshenglu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6440) Cannot pass "classpath" argument from rmic to jvm
Date Mon, 08 Feb 2010 03:13:32 GMT
Cannot pass "classpath" argument from rmic to jvm

                 Key: HARMONY-6440
                 URL: https://issues.apache.org/jira/browse/HARMONY-6440
             Project: Harmony
          Issue Type: Bug
          Components: JDK
         Environment: Windows XP, 
            Reporter: chuanshenglu

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:

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

 bin\rmic.exe -v1.2 -cp C:/rmihello -J "-classpath C:/rmihello" Hello
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!

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message