Jump to content

"gradlew setupDecompWorkspace" Build Failed. "Java Heap Space" Error


Grosso10

Recommended Posts

I execute "gradlew setupDecompWorkspace"

and it says: (After 20 min or so)

Failure: Build Failed.

 

Execution failed for task ':decompileMC'

>Java Heap Space

Build Failed.

 

Can anyone help me?

 

I have already tried gradlew --refresh-dependencies

and gradlew clean

Link to comment
Share on other sites

  • 3 weeks later...

Good days

 

do you refer to the line number 12 from the gradlew.bat file in the forge main folder,

 

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx2048m"

 

 

it dont works for my, i alredy try at 1024 and 2048 whithout succes

 

 

this is the console output

usuario@debian:~/Modding/forge-1.8.8-1635-modmercenario$ ./gradlew setupDecompWorkspace --refresh-dependencies
This set of MCP mappings was designed for MC 1.8. Use at your own peril.
#################################################
         ForgeGradle 2.1-SNAPSHOT-9fb7522        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:deobfMcSRG SKIPPED
:decompileMc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':decompileMc'.
> Java heap space

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7 mins 21.989 secs
usuario@debian:~/Modding/forge-1.8.8-1635-modmercenario$ ./gradlew setupDecompWorkspace --refresh-dependencies
This set of MCP mappings was designed for MC 1.8. Use at your own peril.
#################################################
         ForgeGradle 2.1-SNAPSHOT-9fb7522        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:deobfMcSRG SKIPPED
:decompileMc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':decompileMc'.
> Java heap space

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 14 mins 52.413 secs
usuario@debian:~/Modding/forge-1.8.8-1635-modmercenario$ 

 

 

is anything else to do to  fix this ??

thanks for reading

Link to comment
Share on other sites

  • 2 weeks later...
  • 7 months later...

Actually, do change the gradlew arguments. I had the same issue, and, in being in the best spot possible for wifi, got it to work with 1020m. If 2040 does not work, plug in to your Ethernet cable and allot 4000m in the bat file. DecompileMc is a big task, and I think requires internet. Heap size is how much memory/power you allot to whatever you want to do. I would reccomend not going over 4g of heap size, as then things get quite messy with maximum heap size allotments.

Link to comment
Share on other sites

enable seeing file extensions.

 

go to where you extracted the zip.

 

make a text named

gradle.properties

 

inside put

org.gradle.jvmargs=-Xmx1300M

 

you now have 1.3gb allocated

 

you don't really need more than this...

 

gradlew clean is for when you get your .jar out of the build lib.

It will erase and clean your builds but not affect the code.

So you get a clean build every time. (like if you were going from one project to another)

you should run gradlew clean before building the 2nd src so that the 2nd build does not obtain files from your previous one.

 

need the most up to date java and java jdk

along with elcipse. (neons what i got right now)

 

before running gradlew build though I highly recommend opening your gradle.build and put this at the end after the last

}

sourceCompatibility = 1.8

targetCompatibility = 1.8

 

 

this will target java 8 on setup.

and your eclipse will thank you later.

 

 

-anyone is free to copy and paste this :P

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.

Guest
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.

Announcements



×
×
  • Create New...

Important Information

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