The WebLogic Server 10.3.6.x and 12.1.2 Installers does not detect the Windows 2012 Operating System. When launching WLST, the following exception will occur, which detects the environment as UNIX and not as Windows:
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Failed to get environment, environ will be empty: (0, 'Failed to execute
command ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program
"sh": CreateProcess error=2, The system cannot find the file specified')
@ Error: ADRS_DOMAIN_PASSWORD environment variable not set.
Exiting WebLogic Scripting Tool.
The installer includes a list of supported operating systems in the javashell.py script located in $MW_HOME/WL_HOME/wlserver/common/wlst/modules/jython-modules.jar, but this list is missing Windows 2012. As a result, WebLogic assumes a Windows 2012 OS to be a UNIX environment instead. This issue has been addressed in unpublished defect 16844206.
Patches are available for unpublished defect 16844206:
|10.3.6.x, 12.1.2||Patch 16844206|
文章来源于：My Oracle Support Community (MOSC)，详细内容可链接：https://community.oracle.com/thread/4010158