{"id":49,"date":"2009-11-13T11:15:03","date_gmt":"2009-11-13T18:15:03","guid":{"rendered":"http:\/\/journeyman.ivystreetinc.com\/?p=49"},"modified":"2009-11-13T16:13:55","modified_gmt":"2009-11-13T23:13:55","slug":"updating-eclipse-projects-from-java-1-5-to-java-1-6","status":"publish","type":"post","link":"http:\/\/10kdev.net\/?p=49","title":{"rendered":"Updating Eclipse Projects From Java 1.5 to Java 1.6"},"content":{"rendered":"<div>When you are updating from jdk 1.5 to jdk 1.6 in Eclipse 3.5, make sure you hit all of these\u00a0 touchpoints:<\/div>\n<ul>\n<li>On your machine, install jdk 1.6 and change your environment path variables to point to the 1.6 directories.<\/li>\n<li>In Eclipse, Under Windows-&gt;Preferences-&gt;Java-&gt;Installed JREs make sure jdk 1.6 is\u00a0 added, and select it.<\/li>\n<li>In Eclipse, Under Windows-&gt;Preferences-&gt;Java-&gt;Build Path-&gt;Classpath Variables make sure jdk 1.6 is added for JRE_LIB and JRE_SRC.<\/li>\n<li>In Eclipse, Under Windows-&gt;Preferences-&gt;Java-&gt;Compiler set compliance level to 1.6.<\/li>\n<li>In Eclipse, Under Windows-&gt;Preferences-&gt;Ant-&gt;Runtime set classpath variables 1.6.<\/li>\n<li>Update your JBoss server\/web server to use the 1.6 runtime.<\/li>\n<li>In each project, change the compiler, the classpaths, the facets, and the runtimes for your servers (as applicable) to use jdk 1.6.<\/li>\n<\/ul>\n<p>Then you should be good to go.\u00a0 Build using both the Eclipse and the Ant methods to test . . . remember, the Hudson build server (or any build process) uses the ant scripts so if you check in the app with broken scripts you&#8217;ve checked in a bug!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you are updating from jdk 1.5 to jdk 1.6 in Eclipse 3.5, make sure you hit all of these\u00a0 touchpoints: On your machine, install jdk 1.6 and change your environment path variables to point to the 1.6 directories. In Eclipse, Under Windows-&gt;Preferences-&gt;Java-&gt;Installed JREs make sure jdk 1.6 is\u00a0 added, and select it. In Eclipse, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/49"}],"collection":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49"}],"version-history":[{"count":2,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":51,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions\/51"}],"wp:attachment":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}