Friday, December 13, 2019

Getting the JDK version correct in STS4 / Eclipse2019 on MacOs

After installing the latest STS (version 4 and built on Eclipse 2019) and JDK13, I made a new project and had some difficulty in directing STS how to find the new JDK. The following is the "new Java project" wizard.



But the problem is, where is the JRE_HOME directory? Over the past two decades, where MacOS puts the JDK has evolved.  Then I discovered that Java on MacOS installs with a command to find it!


The java_home command also takes a "-v" argument to specify what version of Java you seek.



Using this command tells you what directory your JDK is and you are off and coding!
 



By the way: learn more about TDD, micro testing, macro testing

Check out the Agile Thoughts podcast.  This podcast gets the Confessions Of An Agile Coach's endorsement (naturally, since the same people produce it) of quality materials for developers and teams trying to get coding done in a way that avoids dealing with legacy issues such as bugs and hard to maintain code.  Agile Thoughts has a lot of great TDD conceptual content along with a radio drama about the difficulties to getting a TDD initiative started.  Click the podcast cover below or here for more information.

Agile Thoughts podcast

References:



No comments:

Post a Comment