I ran into the same problem. The solution is that there is a naming convention. if you have a selenium server standalone.jar file, you can rename it first to make it simple (abc.jar example).
1) If the jar file on your system encounters a .jar extension, then after renaming, specify the .jar extension (for example, abc.jar)
2) If the jar file on your system does not have the .jar extension, then after renaming, do not provide the .jar extension (for example, abc)
3) Now start the hub: java -jar abc.jar -role hub
Regards, Nikil Canoya
user3640657
source share