The only solution I found to do so is using brute force. You can't easily switch between GraalVM 11.0.9 and AdoptOpenJDK 11.0.9. That's not as arcane as it sounds: MacOS treats GraalVM as just another Java distribution. The bad news is you can't switch between identical versions provided by different vendors. Replacing 15.0.1 with 15 does the trick, too, unless you want to distinguish between, say, 15.0.1 and 15.2.0. It doesn't have to be the precise version number. The catch is you have to unset (sic!) the JAVA_HOME variable. In a way, it's a good idea: just set the version number, and the operation system does the rest for you. Most of the time setting the PATH and JAVA_HOME worked. Older versions of OSX were pretty straightforward. However, if you need to switch between different versions, it doesn't suffice to set the environment variables PATH and JAVA_HOME. That's not a big deal if you need only one version of Java. Nowadays, most operating systems make a developer's life difficult by trying to help. Once upon a time, you could use Java without installing it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |