<p>If Java application requires certain JRE version then how can I check its availability on Mac OS X during installation?</p>

[{'answer_id': 63227, 'author': 'Stu Thompson', 'author_id': 2961, 'author_profile': 'https://Stackoverflow.com/users/2961', 'pm_score': 2, 'selected': True, 'text': '<p>It should be as simple as looking at /System/Library/Frameworks/JavaVM.framework/Versions/</p>\n\n<p>E.g. from my machine:</p>\n\n<pre><code>manoa:~ stu$ ll /System/Library/Frameworks/JavaVM.framework/Versions/\ntotal 56\n774077 lrwxr-xr-x  1 root  wheel    5 Jul 23 15:31 1.3 -&gt; 1.3.1\n167151 drwxr-xr-x  3 root  wheel  102 Jan 14  2008 1.3.1\n167793 lrwxr-xr-x  1 root  wheel    5 Feb 21  2008 1.4 -&gt; 1.4.2\n774079 lrwxr-xr-x  1 root  wheel    3 Jul 23 15:31 1.4.1 -&gt; 1.4\n166913 drwxr-xr-x  8 root  wheel  272 Feb 21  2008 1.4.2\n168494 lrwxr-xr-x  1 root  wheel    5 Feb 21  2008 1.5 -&gt; 1.5.0\n166930 drwxr-xr-x  8 root  wheel  272 Feb 21  2008 1.5.0\n774585 lrwxr-xr-x  1 root  wheel    5 Jul 23 15:31 1.6 -&gt; 1.6.0\n747415 drwxr-xr-x  8 root  wheel  272 Jul 23 10:24 1.6.0\n167155 drwxr-xr-x  8 root  wheel  272 Jul 23 15:31 A\n776765 lrwxr-xr-x  1 root  wheel    1 Jul 23 15:31 Current -&gt; A\n774125 lrwxr-xr-x  1 root  wheel    3 Jul 23 15:31 CurrentJDK -&gt; 1.5\nmanoa:~ stu$ \n</code></pre>\n'}, {'answer_id': 63236, 'author': 'UnkwnTech', 'author_id': 115, 'author_profile': 'https://Stackoverflow.com/users/115', 'pm_score': 0, 'selected': False, 'text': '<p>This artical may help:\n<a href="http://developer.apple.com/technotes/tn2002/tn2110.html" rel="nofollow noreferrer">http://developer.apple.com/technotes/tn2002/tn2110.html</a><br />\nSummery:</p>\n\n<pre><code>String javaVersion = System.getProperty("java.version");\nif (javaVersion.startsWith("1.4")) {\n  // New features for 1.4\n}\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/63206', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7292/']