Hello, so I ran into this problem and I can’t seem to find a way to fix it. This used to work on other Linux distros (including Ubuntu 16.04), Windows 10 and Mac, but somehow it isn’t working on Elementary OS. I installed Gradle with SDKMan like I always did before on Unix-based systems, as they recommended it on their website and when I run “gradle build” and “gradle run”, the server would be working just fine.
Right now, I can only “gradle build”, whenever I use “gradle run”, I get this error:
Starting a Gradle Daemon (subsequent builds will be faster)
java.net.SocketException: Permission denied
at sun.nio.ch.Net.bind0(Native Method)
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:run’.
Process ‘command ‘/home/troopy712139/.sdkman/candidates/java/8u121/bin/java’’ finished with non-zero exit value 1
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 51.21 secs
I tried using “sudo gradle run” because it said “Permission Denied” but I get “sudo: gradle: command not found”.
This made me do a manual installation of Gradle by unzipping the file into a custom made directory and then adding that gradle/bin path to the Environment Variable. This still does the same thing.
Any idea on how I can fix this?