You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "chuanshenglu (JIRA)" <ji...@apache.org> on 2010/02/08 04:13:32 UTC

[jira] Created: (HARMONY-6440) Cannot pass "classpath" argument from rmic to jvm

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:

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!


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