Jump to content

Recommended Posts

Posted (edited)

When I run genIntellijRuns I get this error:

java.lang.NullPointerException
        at net.minecraftforge.gradle.common.Constants.addXml(Constants.java:297)
        at net.minecraftforge.gradle.user.UserBasePlugin.injectIntellijRuns(UserBasePlugin.java:1305)
        at net.minecraftforge.gradle.user.UserBasePlugin$14.execute(UserBasePlugin.java:1213)
        at net.minecraftforge.gradle.user.UserBasePlugin$14.execute(UserBasePlugin.java:1176)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:621)

So I saw a report on the GitHub saying delete .idea files and run gradlew idea genIntellijRuns.

Same error, but a client/server configuration are created. It worked for a 1.8.9 project, and I get the run config in this 1.12.2 project, but when I run it I get this error:

Error: Could not find or load main class GradleStart

gradlew runClient works once but it stops (I am trying to run ThermalDynamics with the files from their github) with an error that there are two jei jars.

If I run it again no window opens and I get the "task success" message.

If I run genIntellijRuns and idea genIntellijRuns it says task successful without the error.

 

I tried deleting the .gradle and reruning setupDecompWorkspace and genIntellijRuns, this time it made the StartGradle file but Intellij doesn't find it.

Edited by Big_Bad_E
Posted

Chances are you need to set the module in the runConfig to the main module.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)
  On 8/24/2019 at 12:58 AM, DaemonUmbra said:

Chances are you need to set the module in the runConfig to the main module.

Expand  

I set it to main

 

FIGURED IT OUT! Intellij decided to set my JDK to none instead of JDK 1.8 for some reason.

Edited by Big_Bad_E
Posted

Oh this is on the task and not actually running it, I see.

When you say it worked for 1.8.9, you're not using the same build.gradle are you?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

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.