jdk/test/sun/tools/jhat/HatRun.java
changeset 4514 7758bdd54629
parent 4319 47bb128ae7b3
child 4519 fff7fde5b3a0
--- a/jdk/test/sun/tools/jhat/HatRun.java	Tue Dec 08 12:41:01 2009 -0800
+++ b/jdk/test/sun/tools/jhat/HatRun.java	Wed Dec 09 09:46:57 2009 -0800
@@ -166,8 +166,10 @@
                             jre_home );
         String cdir      = System.getProperty("test.classes", ".");
         String os_arch   = System.getProperty("os.arch");
-        boolean d64      = os_arch.equals("sparcv9") ||
-                           os_arch.equals("amd64");
+        String os_name   = System.getProperty("os.name");
+        boolean d64      = os_name.equals("SunOS") && (
+                             os_arch.equals("sparcv9") ||
+                             os_arch.equals("amd64"));
         String isa_dir   = d64?(File.separator+os_arch):"";
         String java      = jre_home
                              + File.separator + "bin" + isa_dir