test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java

Print this page
rev 9529 : 8034960: Serviceability tests using @library failing with java.lang.NoClassDefFoundError


  24 import java.io.File;
  25 import java.io.IOException;
  26 import java.nio.file.FileSystem;
  27 import java.nio.file.FileSystems;
  28 import java.nio.file.Files;
  29 import java.nio.file.LinkOption;
  30 import java.nio.file.Path;
  31 import java.nio.file.StandardCopyOption;
  32 import java.nio.file.attribute.PosixFilePermission;
  33 import java.util.HashSet;
  34 import java.util.Set;
  35 import java.util.concurrent.TimeUnit;
  36 import java.util.concurrent.atomic.AtomicReference;
  37 
  38 import jdk.testlibrary.ProcessTools;
  39 
  40 /**
  41  * @test
  42  * @bug 6434402 8004926
  43  * @library /lib/testlibrary
  44  * @build jdk.testlibrary.ProcessTools
  45  * @build TestManager TestApplication CustomLauncherTest
  46  * @run main/othervm CustomLauncherTest
  47  * @author Jaroslav Bachorik
  48  */
  49 public class CustomLauncherTest {
  50     private static final  String TEST_CLASSPATH = System.getProperty("test.class.path");
  51     private static final  String TEST_JDK = System.getProperty("test.jdk");
  52     private static final  String WORK_DIR = System.getProperty("user.dir");
  53 
  54     private static final  String TEST_SRC = System.getProperty("test.src");
  55     private static final  String OSNAME = System.getProperty("os.name");
  56     private static final  String ARCH;
  57     private static final  String LIBARCH;
  58 
  59     static {
  60         // magic with os.arch
  61         String osarch = System.getProperty("os.arch");
  62         switch (osarch) {
  63             case "i386":
  64             case "i486":
  65             case "i586":




  24 import java.io.File;
  25 import java.io.IOException;
  26 import java.nio.file.FileSystem;
  27 import java.nio.file.FileSystems;
  28 import java.nio.file.Files;
  29 import java.nio.file.LinkOption;
  30 import java.nio.file.Path;
  31 import java.nio.file.StandardCopyOption;
  32 import java.nio.file.attribute.PosixFilePermission;
  33 import java.util.HashSet;
  34 import java.util.Set;
  35 import java.util.concurrent.TimeUnit;
  36 import java.util.concurrent.atomic.AtomicReference;
  37 
  38 import jdk.testlibrary.ProcessTools;
  39 
  40 /**
  41  * @test
  42  * @bug 6434402 8004926
  43  * @library /lib/testlibrary
  44  * @build jdk.testlibrary.* TestManager TestApplication CustomLauncherTest

  45  * @run main/othervm CustomLauncherTest
  46  * @author Jaroslav Bachorik
  47  */
  48 public class CustomLauncherTest {
  49     private static final  String TEST_CLASSPATH = System.getProperty("test.class.path");
  50     private static final  String TEST_JDK = System.getProperty("test.jdk");
  51     private static final  String WORK_DIR = System.getProperty("user.dir");
  52 
  53     private static final  String TEST_SRC = System.getProperty("test.src");
  54     private static final  String OSNAME = System.getProperty("os.name");
  55     private static final  String ARCH;
  56     private static final  String LIBARCH;
  57 
  58     static {
  59         // magic with os.arch
  60         String osarch = System.getProperty("os.arch");
  61         switch (osarch) {
  62             case "i386":
  63             case "i486":
  64             case "i586":