Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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.

  • 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).

  • 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?

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.