<p>We've been developing a windows based application using Java for a while now, but NOW we want to make a mac port and have to reverse of code from Java 6 and Java 5.  Is there any easy way to do this rather than re-coding Java 6 specific code?  We'd like to keep our code up to date.</p>

[{'answer_id': 18013, 'author': 'DrPizza', 'author_id': 2131, 'author_profile': 'https://Stackoverflow.com/users/2131', 'pm_score': -1, 'selected': False, 'text': "<p>You might be able to backport the additional libraries from Java 6 to Java 5, but I imagine it would be rather more trouble that it's worth.  Intel Macs with 64-bit processors (so not the original Intel Mac Mini) running Leopard have Java 6, so perhaps you could just target them?</p>\n"}, {'answer_id': 18019, 'author': 'ScArcher2', 'author_id': 1310, 'author_profile': 'https://Stackoverflow.com/users/1310', 'pm_score': 2, 'selected': False, 'text': "<p>Apple released Java 6 on the latest version of OS X. What features are you using specifically from Java6 that aren't in java5? </p>\n"}, {'answer_id': 18029, 'author': 'Tim Frey', 'author_id': 1471, 'author_profile': 'https://Stackoverflow.com/users/1471', 'pm_score': 1, 'selected': False, 'text': "<p>Do you know how much you would have to rewrite if you just went back to Java 5?  If you changes the JDK setting in your IDE and try to recompile it should give you a pretty good idea on how big the changes would actually be.  For most developers, Java 6 didn't really offer too much in the way of new features/APIs but I guess it's possible your project depends heavily on something that was added.</p>\n"}, {'answer_id': 19382, 'author': 'dlinsin', 'author_id': 198, 'author_profile': 'https://Stackoverflow.com/users/198', 'pm_score': 2, 'selected': False, 'text': '<p>There are a couple of libraries out there which can help you. Unfortunately I haven\'t tried them myself, because I\'ve never run into such a situation. </p>\n\n<ul>\n<li><a href="http://retroweaver.sourceforge.net/" rel="nofollow noreferrer">Retroweaver</a></li>\n<li><a href="http://retrotranslator.sourceforge.net/" rel="nofollow noreferrer">Retrotransaltor</a></li>\n<li><a href="http://backport-jsr166.sourceforge.net/" rel="nofollow noreferrer">backport-jsr166</a></li>\n</ul>\n'}, {'answer_id': 20275, 'author': 'jsight', 'author_id': 1432, 'author_profile': 'https://Stackoverflow.com/users/1432', 'pm_score': 2, 'selected': False, 'text': "<p>In my experience this is so easy that the whining takes more time than the doing.  There are very few things in 1.6 that can't be backported with a minute or so (literally) worth of work.  How many compile errors are you seeing when you try it with 1.5, and what for?</p>\n\n<p>Keep in mind that there are readily available, API compatible, low-footprint backports for the few things that are useful in 1.6 (SwingWorker).</p>\n"}, {'answer_id': 230338, 'author': 'Davide', 'author_id': 25891, 'author_profile': 'https://Stackoverflow.com/users/25891', 'pm_score': 2, 'selected': False, 'text': '<p>See here:</p>\n\n<p><a href="http://en.wikipedia.org/wiki/Comparison_of_backporting_tools" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/Comparison_of_backporting_tools</a></p>\n\n<p>I tried retrotranslator from 1.6 to 1.4.2 and it works pretty well!</p>\n'}, {'answer_id': 34261965, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>There is also Java 8 for Mac OS X. New versions of Java would be compatible, like Java 8 is compatible with Java 5 Code, so Java 6 code is compatible too.</p>\n'}]
['https://Stackoverflow.com/questions/17993', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/738/']