diff --git a/jdk/test/java/nio/file/Files/ContentType.java b/jdk/test/java/nio/file/Files/ContentType.java index fdbb9014ef67cdf35fc9d4f679c727c3230d4f4a..3cea26539f8e0dbc6d2c95dbc231bd50cf61fcf5 100644 --- a/jdk/test/java/nio/file/Files/ContentType.java +++ b/jdk/test/java/nio/file/Files/ContentType.java @@ -26,7 +26,7 @@ * @summary Unit test for probeContentType method * @library .. * @build ContentType SimpleFileTypeDetector - * @run main ContentType + * @run main/othervm ContentType */ import java.nio.file.*; diff --git a/jdk/test/java/nio/file/Path/CheckPermissions.java b/jdk/test/java/nio/file/Path/CheckPermissions.java index a8aef0f91f26b8cd6e35fd5c2e73f1203550f8f0..9e0f796afc75455b875f9904c2d26d7e4f251a26 100644 --- a/jdk/test/java/nio/file/Path/CheckPermissions.java +++ b/jdk/test/java/nio/file/Path/CheckPermissions.java @@ -25,6 +25,8 @@ * @bug 6866804 * @summary Unit test for java.nio.file.Path * @library .. + * @build CheckPermissions + * @run main/othervm CheckPermissions */ import java.nio.ByteBuffer;