Jump to content

1.14.4 Gradle change Java directory


SamMan

Recommended Posts

Hello again! :)

 

So posted here a few hours ago about some Forge problems, and tracked it down to gradle loading the wrong version of Java. The IDEA error tells me which Java its using:

image.png.01ea8baaf4bb7a3dfc2713af95428d26.png

 

However, this version of Java is incompatible with my version of Minecraft, so I'd like to change it to use the java.exe bundled with Minecraft (location at C:\Program Files (x86)\Minecraft\runtime\jre-x64\bin)

 

Is there a way to do this?

 

Thanks! :D

Link to comment
Share on other sites

21 minutes ago, diesieben07 said:

It shouldn't be, that version should be compatible with 1.14.4 just fine.

 

Don't. That Java is very outdated. Just use the Java that you also use to compile (the JDK).

Thank you for your reply :)

 

Sorry! Should've probably made this more clear. I originally made this post where I ran into a crash when using the runClient command. After some testing I found that that version of Java and my laptop weren't compatible (changing the JRE in the minecraft launcher to the newer one resulted in the crash) so the easiest option seemed to be forcing gradle to use that older yet compatible Java.

Link to comment
Share on other sites

1 minute ago, diesieben07 said:

Are the drivers up to date?

To my knowledge yes. I asked a similar question a few years ago on the technic pack forums and was told that Intel had dropped support for the Intel HD Graphics 3000, leading to these sorts of issues. So I guess they're as updated as they'll ever be

Link to comment
Share on other sites

2 minutes ago, diesieben07 said:

Not sure there is much you can do then, tbh.

Well see, my thinking was that since this old Java version is able to launch Forge, if I could just tell gradle to use that version of Java when launching the runClient script (not the build script, I can use the latest version of Java to do that) and starting MC, I should be in the money.

 

I just haven't been successful in telling gradle to do that :<

Edited by SamMan
Link to comment
Share on other sites

1 minute ago, diesieben07 said:

You will need to have a JDK for that old version installed then. This is highly discouraged, Java updates happen for a reason, most of them time due to security issues that are fixed.

I getcha, though since the newer Java ain't going to work on this (and I'll try to set it up such that its only used for the runClient script), it seems to only option left...

 

Time to go digging!

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.