Running JMI TCK with MDR

This document contains instructions on how to run JMI TCK with MDR. Here are the steps you need to follow:
  1. Run ant in jmitck directory.
  2. Create "netbeans" subdirectory of jmitck directory and unzip content of mdr-standalone.zip into it.
  3. Download build.xml and NBMDRGenerator.java and save them to jmitck/MDRExample directory (replace the original NBMDRGenerator.java).
  4. Run ant in MDRExample directory. NBMDRGenerator should be built successfully.
  5. Create mdrtck_run.sh or mdrtck_run.bat scripts containing something equivalent to:
    #!/bin/sh
    
    if [ "$JAVA_HOME" = "" ] ; then
      echo You must set JAVA_HOME to point at your Java Development Kit directory
      exit 1
    fi
    
    java -Xms24m -Xmx96m -cp lib/javatest.jar:lib/sigtest.jar:jmitck.jar:lib/log4j.jar:lib/ant.jar:servers:tests/modelsem:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/tools.jar:netbeans/jmi.jar:netbeans/mof.jar:netbeans/nbmdr.jar:netbeans/jmiutils.jar:netbeans/mdrapi.jar:netbeans/mdr.jar:netbeans/openide-util.jar:tests/modelsem -Djavatest.security.allowPropertiesAccess=true com.sun.javatest.tool.Main -cleanDesktop 
            
  6. Run mdrtck_run.sh/mdrtck_run.bat.
  7. In the GUI for JMI TCK, choose to create a new working directory. Enter a directory name (ideally a directory that does not exist yet).
  8. Now configure the test suite by going to Configure->Configuration Editor and setting the following values in the Configuration Editor:
  9. Start the tests.