#Installing java 17

8 messages · Page 1 of 1 (latest)

fast rapids
#

Hello, I'm trying to make a mod for Minecraft, but it needs java 17, and java 19 is not supported. I've installed java 17 - or at least tried to - at least 5 different times from different websites, and yet when I run the command java -version in my terminal, I get java version "19.0.1" 2022-10-18. How can I go back to java 17? (I'm on M1 MacBook)

dense ravenBOT
#

This post has been reserved for your question.

Hey @fast rapids! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

#

<@&765578700724371486>

Requested by Kenmasaka#7387
hollow tusk
#

You have to specify where is java17 bin folder (that contais javac and java). You can look up how to set envoronmental variable in MacOS, or if you're using some kind of IDE, where is that java17 folder.

fast rapids
hollow tusk
#

I never used MacOS but google helps.
It looks like it's t he same like on Linux. You have to add export JAVA_HOME=<path to jdk>/Contents/Home

#

In a proper file of course depending from your MacOS release