Jump to content

(1.16) When updating environment variables (PATH) is needed


Recommended Posts

Posted

I'm trying to write some tutorial/advice articles for Minecraft modding for 1.16. I'm a technical writer and have a few of my own mods under my belt. I've seen some older tutorials that tell you to add the path of your Java JDK installation to your environment variables. I don't recall having to do that when I started modding, and my general understanding is that the environment variables are mostly a convenience so you don't have to use the full path of an exe on the command line. So I was wondering if you really need to do anything with environment variables for modding and if so what situations it might be needed. Does it depend on your OS, JDK version, IDE, or what? TIA.

Posted
16 hours ago, Daeruin said:

So I was wondering if you really need to do anything with environment variables for modding and if so what situations it might be needed.

Not really. If you set up your JDK with no modifications, it will still point to the JDK. The path variable is pretty much just a list to which the first entry that matches the requirements will be chosen. If I had two JDKs for two different versions on the path, whichever one is at the highest priority or the top of the list will be chosen. On the other hand, I can force a specific JDK to be chosen using the JAVA_HOME environment variable which tells the program exactly where to look for the JDK. If at least one of these two are set, you should be able to mod with no issues. There is no real dependency on any underlying system for modding, just the JDK you are using (which should be 8 as that is what is shipped with vanilla).

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.