--- old/test/java/rmi/registry/interfaceHash/InterfaceHash.java 2012-07-03 11:31:48.418950600 -0700 +++ new/test/java/rmi/registry/interfaceHash/InterfaceHash.java 2012-07-03 11:31:48.210947288 -0700 @@ -35,8 +35,10 @@ * "interface hash": 4905912898345647071L. * * @author Peter Jones + * @library ../../testlibrary * @build InterfaceHash * @build ReferenceRegistryStub + * @build TestLibrary * @run main/othervm InterfaceHash */ @@ -58,7 +60,7 @@ public class InterfaceHash { - private static final int PORT = 2020; + private static final int PORT = TestLibrary.getUnusedRandomPort(); private static final String NAME = "WMM"; public static void main(String[] args) throws Exception {