Grosso10 Posted November 25, 2015 Posted November 25, 2015 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 Quote
robin4002 Posted November 25, 2015 Posted November 25, 2015 Hi, Java need more memory (2 gb is recommanded to decompile MC 1.8.8 ) Quote
hal1024 Posted November 25, 2015 Posted November 25, 2015 I have the same error. How do I increase the Java memory? Quote
Grosso10 Posted November 25, 2015 Author Posted November 25, 2015 So, what should I write in the command line to increase my memory? gradlew setupDecompWorkspace -Dorg.gradle.jvmargs ? gradlew setupDecompWorkspace -d64 ? Thanks! Quote
perromercenary00 Posted December 2, 2015 Posted December 2, 2015 yup same error but the mine stuck exactly in > Building 56% > :decompileMc at he end says something about it could be faster if you uses other dont remember whath version of graddle of something soo i suspec its a gradlw trouble whith last compilations of forge Quote
gar0u Posted December 21, 2015 Posted December 21, 2015 You can also edit the gradlew.bat or gradlew file directly. Change the DEFAULT_JVM_OPTS="" line to DEFAULT_JVM_OPTS="-Xmx1024m" If you still get the error, change 1024 to 2048. Quote
perromercenary00 Posted December 21, 2015 Posted December 21, 2015 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 Quote
TheHound Posted December 30, 2015 Posted December 30, 2015 Leave the gradlew.bat file alone. Then just make sure you have JDK installed, the newest one and it will work. Quote
DestroyerTheWorm Posted August 15, 2016 Posted August 15, 2016 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. Quote
gurujive Posted August 17, 2016 Posted August 17, 2016 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 Quote
Recommended Posts
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.