If JAVA_HOME isn't set, tests will fail under either the ant test suite regime or standalone partest. To run tests that exercise platform tools, partest should find tools.jar and put it on the class path of the runnable test.