diff --git a/README.adoc b/README.adoc index 8f58cd4094..c0baf70c75 100644 --- a/README.adoc +++ b/README.adoc @@ -82,8 +82,6 @@ https://adoptopenjdk.net/[JDK download] * If on Windows, a Powershell version >= 7.1.3 installed that you can download from the below link. + https://github.com/PowerShell/PowerShell[Powershell] - - [[quick-start]] // tag::quickstart[] == Quick start @@ -95,6 +93,22 @@ the command line at the OFBiz top level directory (folder). === Download the Gradle wrapper: MS Windows: `init-gradle-wrapper` +[IMPORTANT] +==== +If you cross the error + +"Powershell is not recognized as an internal or external command, operable program or batch file" + +follows advice there: https://s.apache.org/vdcv8. + +If you want more details: https://s.apache.org/ac7no + +==== +[NOTE] +==== +If you wonder where are stored the PowerShell Executables, here are the answers: https://s.apache.org/w5dye +==== + Unix-like OS: `./gradle/init-gradle-wrapper.sh` diff --git a/init-gradle-wrapper.bat b/init-gradle-wrapper.bat index 188c13a4c4..5e38fa2e84 100755 --- a/init-gradle-wrapper.bat +++ b/init-gradle-wrapper.bat @@ -23,4 +23,4 @@ if exist "%~dp0gradle\wrapper\gradle-wrapper.jar" ( exit /b ) -%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -command " Start-Process pwsh -Verb RunAs \""-Command `\""cd '%cd%'; & 'gradle\init-gradle-wrapper.ps1';`\""\"" " +pwsh -command " Start-Process pwsh -Verb RunAs \""-Command `\""cd '%cd%'; & 'gradle\init-gradle-wrapper.ps1';`\""\"" "