I'm new to Xalan, but it sounds like your classpath is different for your two JDKs. EnvironmentCheck works for me using JDK 1.5. You need to have xalan.jar (or xsltc.jar), serializer.jar, xml-apis.jar, and xercesImpl.jar on your classpath. If you're not using the -cp or -classpath option to pass the appropriate classpath to the JVM, then it comes from the CLASSPATH environment variable. Check the value of it with:
echo $CLASSPATH
You'll need to have the actual .jar files in the classpath; just using the directory that contains them will not work.
checking the jdk rt.jar of jdk1.5 where xalan package resides I see
the EnvironmentCheck utility class sits in:
com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.class
I'm not sure what this class is for, but it is not the class you want. Because it's in rt.jar, the JVM can always find it, but it doesn't have a main() method.
Hope this helps,
-Kevin