This might help. try using cmd /c add-user.bat or just run add-user.bat without any command before it and Check Java home path.
Error when running add-user.bat for Wildfly server
-
22-06-2023 - |
题
I'm trying to access the Administration console for Wildfly, but first it says I must
run the 'add-user.bat' file in [server installation directory]/bin/
Which I do but then get an error saying, well, look:
When I simply try and run the file by double clicking it I get:
I'm running Windows 8.1 64bit (Urgh) and Java 8
解决方案
不隶属于 StackOverflow