Jump to content

Gradle Won't Work


Recommended Posts

First of all, I'd like to apologise if this is the wrong place to post this and it's supposed to go in the ForgeGradle sub-forum instead, but the "NO SUPPORT REQUESTS" post kind of threw me off.


Today I decided to get back into trying to mod after a while, and I saw all this new stuff. I read up on it, watched tutorials then attempted to do it myself. However, everytime I try to run "gradlew.bat setupDecompWorkspace",  after a whole  lot of dots it gives me this error:




Exception in thread "main" java.lang.RuntimeException: java.net.SocketException: Connection reset

        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)

        at org.gradle.wrapper.Install.createDist(Install.java:44)

        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)

        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:55)

Caused by: java.net.SocketException: Connection reset

        at java.net.SocketInputStream.read(SocketInputStream.java:196)

        at java.net.SocketInputStream.read(SocketInputStream.java:122)

        at java.io.BufferedInputStream.read1(BufferedInputStream.java:273)

        at java.io.BufferedInputStream.read(BufferedInputStream.java:334)

        at sun.net.www.MeteredStream.read(MeteredStream.java:134)

        at java.io.FilterInputStream.read(FilterInputStream.java:133)

        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3053)

        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3047)

        at org.gradle.wrapper.Download.downloadInternal(Download.java:60)

        at org.gradle.wrapper.Download.download(Download.java:42)

        at org.gradle.wrapper.Install$1.call(Install.java:57)

        at org.gradle.wrapper.Install$1.call(Install.java:44)

        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)

        ... 3 more




Now I've searched up this error as much as I could, and from what I've seen, it's usually caused by firewall or such. I've made sure that my firewall is down, and I can download the file that it attempts to download by itself through my browser (gradle-1.11-bin.zip). I've only found one other thread with this error to do with ForgeGradel somewhere on the minecraft forums, and that post was never resolved, and it wasn't of much help.


I'm sure I'm probably making a really stupid mistake, but if you know how I can fix this, please let me know.





I'll help if I can. Apologies if I do something obviously stupid. :D


If you don't know basic Java yet, go and follow these tutorials.

Link to comment
Share on other sites

if (user.hasKnowledgeOfJava) {

    if (user.question.hasCode) {

        return interpetHelpfulResponse(user.getQuestion());

    } else {

        return "Could you post your code please?";


} else {

    return "Learn some freaking Java!";


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.