--- a/jdk/test/java/awt/regtesthelpers/process/ProcessCommunicator.java Fri Feb 26 03:54:52 2010 -0800
+++ b/jdk/test/java/awt/regtesthelpers/process/ProcessCommunicator.java Sat Mar 06 03:37:53 2010 +0300
@@ -146,7 +146,16 @@
final String classPathArguments, final String [] args)
{
StringBuilder commandBuilder = new StringBuilder();
- commandBuilder.append(javaPath).append(classPathArguments).append(classToExecute.getName());
+ commandBuilder.append(javaPath).append(" ");
+ commandBuilder.append("-cp ").append(System.getProperty("test.classes", ".")).append(File.pathSeparatorChar);
+
+ if (classPathArguments.trim().length() > 0) {
+ commandBuilder.append(classPathArguments).append(" ");
+ }
+
+ commandBuilder.append(" ");
+ commandBuilder.append(classToExecute.getName());
+
for (String argument:args) {
commandBuilder.append(" ").append(argument);
}