<os> - Defining OS Restrictions
<os> element affects the applicability of the enclosing (parent) element.
It restricts the parent element to applying only when the installation is being done on the specified operating systems or processor architecture.
It can be embedded into the following elements:
- these child elements of the
- the <laf> element
Although each attribute is not required, it makes no sense to include
<os> unless you specify at least one of
<os> is specified with none of these, the parent element will be ignored in all installation environments.
OS Family to restrict to
"unix" | "windows" | "mac"
Exact OS name to restrict to
Valid OS name defined by the OS vendor, for example "Windows XP" or "Linux"
Exact OS version (see the Java os.version system property)
Valid OS version
System architecture/processor to restrict to (see the Java os.arch system property)
Valid OS architecture
Using OS Restrictions
The following example says that the
<executable> element only applies when the installation is being done on a unix-like operating system.