Jump to content

[1.8.9] Could not find or load main class GRADLE_OPTS=-Xmx3072m


Recommended Posts

Posted

After much frustration copying my Mod's source files to a 1.8.9 forge version, making an environment variable called "GRADLE_OPTS" which didn't help because I needed to allocate 3 gigs of RAM to the gradle setup process, I came up with an issue. Upon completion I copied the src folder to the new forgesource workspace, resolved the errors,  and tried to run "gradlew build". When I did it returned this error:

 

Error: Could not find or load main class GRADLE_OPTS=-Xmx3072m

 

I feel this is related to the tinkering I did before, as 3 gigs of ram was the amount I attempted to allocate. Yet I have deleted the environment variable and the gradle properties file I created and yet I still get this issue.

 

Anybody know how to fix this?

 

Thanks in advance.

Posted

That's not how you allocate more memory.

 

Use the

org.gradle.jvmargs

property in the

~/.gradle/gradle.properties

file as described here

I understand that now, but that properties file didn't work for me, so I had to add some "-Diag" or something extension and it worked.

 

The issue is the error I'm getting trying to turn my mod into a jar file.

Posted

Run

gradlew build

with the

--stacktrace

option and post the entire log.

Nevermind, I had to delete the GRADLE_OPTS variable and it worked now. Thanks tho.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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