jdk/test/demo/jvmti/DemoRun.java
changeset 4229 b09f9b9f75c5
parent 2 90ce3da70b43
child 5506 202f599c92aa
--- a/jdk/test/demo/jvmti/DemoRun.java	Mon Nov 09 07:38:05 2009 -0800
+++ b/jdk/test/demo/jvmti/DemoRun.java	Mon Nov 09 12:38:32 2009 -0800
@@ -145,7 +145,7 @@
          */
         int nvm_options = 0;
         if ( vm_options != null ) nvm_options = vm_options.length;
-        String cmd[]     = new String[1 + (d64?1:0) + 5 + nvm_options];
+        String cmd[]     = new String[1 + (d64?1:0) + 7 + nvm_options];
         String cmdLine;
         int exitStatus;
         int i,j;
@@ -154,6 +154,10 @@
         cmdLine = "";
         cmdLine += (cmd[i++] = java);
         cmdLine += " ";
+        cmdLine += (cmd[i++] = "-cp");
+        cmdLine += " ";
+        cmdLine += (cmd[i++] = cdir);
+        cmdLine += " ";
         cmdLine += (cmd[i++] = "-Dtest.classes=" + cdir);
         if ( d64 ) {
             cmdLine += " ";