jdk/test/com/sun/jdi/DoubleAgentTest.java
changeset 4342 9f3aa1172803
parent 4335 365eb4449319
child 5506 202f599c92aa
equal deleted inserted replaced
4341:2af5eacd4b24 4342:9f3aa1172803
    90      */
    90      */
    91     private static Process launch(String address, String class_name) throws IOException {
    91     private static Process launch(String address, String class_name) throws IOException {
    92         String exe =   System.getProperty("java.home")
    92         String exe =   System.getProperty("java.home")
    93                      + File.separator + "bin" + File.separator;
    93                      + File.separator + "bin" + File.separator;
    94         String arch = System.getProperty("os.arch");
    94         String arch = System.getProperty("os.arch");
    95         if (arch.equals("sparcv9")) {
    95         String osname = System.getProperty("os.name");
       
    96         if (osname.equals("SunOS") && arch.equals("sparcv9")) {
    96             exe += "sparcv9/java";
    97             exe += "sparcv9/java";
    97         } else if (arch.equals("amd64")) {
    98         } else if (osname.equals("SunOS") && arch.equals("amd64")) {
    98             exe += "amd64/java";
    99             exe += "amd64/java";
    99         } else {
   100         } else {
   100             exe += "java";
   101             exe += "java";
   101         }
   102         }
   102         String jdwpOption = "-agentlib:jdwp=transport=dt_socket"
   103         String jdwpOption = "-agentlib:jdwp=transport=dt_socket"