<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MacOS on Maarten on IT</title><link>https://maarten.mulders.it/categories/macos/</link><description>Recent content in MacOS on Maarten on IT</description><generator>Hugo</generator><language>en-us</language><copyright>&amp;copy; 2013 - 2026 Maarten Mulders</copyright><lastBuildDate>Mon, 27 Sep 2021 21:26:41 +0200</lastBuildDate><atom:link href="https://maarten.mulders.it/categories/macos/index.xml" rel="self" type="application/rss+xml"/><item><title>Quickly switch Java versions on macOS</title><link>https://maarten.mulders.it/2017/02/quickly-switch-java-versions-on-macos/</link><pubDate>Tue, 07 Feb 2017 18:06:40 +0200</pubDate><guid>https://maarten.mulders.it/2017/02/quickly-switch-java-versions-on-macos/</guid><description>&lt;p&gt;Inspired by &lt;a href="https://maarten.mulders.it/blog/2017/02/jfokus-day-1.html#java-9-make-way-for-modules"&gt;a Jfokus session I attended today&lt;/a&gt; I decided to download and install a preview of Java 9 on my MacBook.
That went pretty quick and without much trouble.
But when I issued &lt;code&gt;java -version&lt;/code&gt; on my terminal, I was greeted with&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Java(TM) SE Runtime Environment (build 9-ea+155)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+155, mixed mode)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Although that&amp;rsquo;s nice - you&amp;rsquo;d even expect it, maybe - I realised I often need Java 8 as well.
How to quickly switch between the two?&lt;/p&gt;</description></item></channel></rss>