equal
deleted
inserted
replaced
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" |