public class OSArch {
public static void main(String[] args) {
System.out.println("os.arch = " + System.getProperty("os.arch"));
}
}
The system property "os.arch" should be consistent (and preferably consistent with the directory in lib). Here is the value printed out on various platforms (merlin b67):
Solaris sparc : "sparc"
Solaris sparc 64-bit mode : "sparc"
Solaris intel : "x86"
Linux : "i386"
This property is needed for determining the location of the libraries (which is also used to determine the location of the java.awt.Robot executable). It would be nice if the property value were consistent with the directory in lib. There are a number of problems with the current property's values:
+ There is no way to distinguish "sparc" from "sparcv9", since the executables and libraries are in a different directory for 64-bit solaris.
+ The directory in lib is named "i386" on both Solaris intel and Linux, but the property value is inconsistent between the two. It would be nice if it were "i386" for both, since this is the directory name in lib.
public static void main(String[] args) {
System.out.println("os.arch = " + System.getProperty("os.arch"));
}
}
The system property "os.arch" should be consistent (and preferably consistent with the directory in lib). Here is the value printed out on various platforms (merlin b67):
Solaris sparc : "sparc"
Solaris sparc 64-bit mode : "sparc"
Solaris intel : "x86"
Linux : "i386"
This property is needed for determining the location of the libraries (which is also used to determine the location of the java.awt.Robot executable). It would be nice if the property value were consistent with the directory in lib. There are a number of problems with the current property's values:
+ There is no way to distinguish "sparc" from "sparcv9", since the executables and libraries are in a different directory for 64-bit solaris.
+ The directory in lib is named "i386" on both Solaris intel and Linux, but the property value is inconsistent between the two. It would be nice if it were "i386" for both, since this is the directory name in lib.
- relates to
-
JDK-4464611 Unable to create Robot process on Solaris x86.
- Closed
-
JDK-4469594 Library directory lib/i386 is inconsistent with system property "os.arch"
- Closed
-
JDK-4476726 Change os.arch property from "i386" to "x86" on Linux
- Closed