Posted December 19, 20159 yr I've been recompiling my mod for a while now, but recently, have had this error upon running gradlew build: C:\Users\joshl\Downloads\Rapad Mod>gradlew build **************************** Powered By MCP: http://modcoderpack.com/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : unknown **************************** :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava UP-TO-DATE :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :jar UP-TO-DATE :compileTestJava UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test UP-TO-DATE :extractMcpData UP-TO-DATE :getVersionJson :extractUserDev UP-TO-DATE :genSrgs SKIPPED :reobf FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':reobf'. > 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: 58.038 secs
December 19, 20159 yr Gradle's run out of memory. You need to specify more. Open the gradlew file (with notepad++ or wordpad), and look around line 11. There should be a variable called DEFUALT_JVM_OPTS . Change that to something higher. 512M is 1/2 GB 1024M is 1 GB 2G is 2 GB and so on... I might be terribly wrong.. Like really, really wrong. But I'm just trying to help.
December 19, 20159 yr Author You can give gradle more memory using the org.gradle.jvmargs property in a gradle.properties file. I gave it 4096M in the gradlew file as there is no gradle.properties file (I'm using Forge 1.7.10 - 10.13.4.1558).
December 19, 20159 yr Author You are supposed to create it... Can you give me an example of a gradle.properties file with the jvmargs line on it? I'm kinda new to creating these, because I've never created one before. Nvm, figured it out, but it still fails with the same error. Ok, now it stalls and won't continue for a few minutes unless I press enter, the resulting file is over 1GB instead of just 20 or so megs. Why?
December 19, 20159 yr Author Where did you create the gradle.properties file? Show it's contents, too. Nvm, had a bunch of junk in the assets folder. Must've eaten all the memory trying to add stuff in that wasn't supposed to be there. Damn. Gotta remember where I download stuff.
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.