Jump to content

gradlew build reobf failed java heap space


darthvader45

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

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.