1. Verify that the Java virtual machine (JVM) you want to use is selected in the JVM tab of the Preferences dialog box, and that the selected JVM is JVMPI compatible.
2. Verify that the Program Name field of the Run Program dialog box shows the correct viewer name; for example, java.exe for the Sun JVM. If the viewer name is correct, try prefixing the filename with the full path.
3. Verify that any switches or options required by your Java viewer were correctly entered (before your Java program name) in the Command-line arguments field of the Run Program dialog box.
4. If you have defined a JAVA_HOME user environment variable and want IBM Rational PureCoverage to use the default path to your JVM, verify that JAVA_HOME specifies the correct path.
5. Verify that the Working directory field of the Run Program dialog box correctly shows the full path to your Java program, and that all the files your program needs to run are in that directory, or in your CLASSPATH.
6. If you are using a container program or a web browser, it may be using a JVM which is not supported by IBM Rational PureCoverage. Consult the container program or browser's documentation to see what JVM version it is using.
Notes:
§ When you run Java code in conjunction with a JVM, analysis data collection relies on the Java Virtual Machine Profiling Interface (JVMPI) as described in the Java 2 standard and implemented in Sun Microsystems' reference release. It is possible that IBM Rational PureCoverage will work with Java 2 compliant JVMs from vendors in addition to IBM and Sun, but IBM Rational Software Corporation does not guarantee this.
§ To collect analysis data for Java applets launched by Internet Explorer 4.0 with the Active Desktop installed, you must pass the -new argument to Internet Explorer. To check whether the Active Desktop is installed, right-click your desktop and choose Properties from the shortcut menu. If the Active Desktop component is installed, the Properties dialog box has a Web tab.
(C) Copyright IBM Corporation 1993, 2010.