When you run schema compilation through the JavaTest Agent, your schema compiler will be executed in the Agent's JVM. Your implementation must provide a custom class to invoke your schema compilation tool. This class should implement the SchemaCompilerTool interface:

package com.sun.jaxb_tck.lib;

public interface SchemaCompilerTool {

    /**
    * @param xsdFiles  array of strings containing schema files
    * @param packageName  the target package
    * @param outDir  output directory where java file(s) will be generated
    * @param out  output stream for logging
    * @param err  error stream for logging
    * @return 0 if java file(s) generated successfully
    */

    int compile(String[] xsdFiles, String packageName, File outDir,
            final PrintStream out, final PrintStream err) throws Exception;
}

Schema compilation should be accomplished during invocation of compile method.

The JAXB TCK includes the following class that is fully compatible with Sun's reference implementation and that can be used for schema compilation: com.sun.jaxb_tck.lib.SchemaCompiler. The realization of the method

compile(String[] xsdFiles, String packageName, File outDir, PrintStream out, PrintStream err)
compiles a schema(s) into java source(s).

If your implementation doesn't provide such a class, please, create it and specify it here.