{"id":4731,"date":"2014-03-30T15:00:51","date_gmt":"2014-03-30T15:00:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/do-i-need-to-switch-javac-to-version-7-collection-of-common-programming-errors\/"},"modified":"2014-03-30T15:00:51","modified_gmt":"2014-03-30T15:00:51","slug":"do-i-need-to-switch-javac-to-version-7-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/do-i-need-to-switch-javac-to-version-7-collection-of-common-programming-errors\/","title":{"rendered":"Do I need to switch javac to version 7?-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve setup Java 7 at <code>\/usr\/bin\/java<\/code> in ubuntu 12.04 to replace the default which is Java 6.<\/p>\n<p>I have done the same for <code>\/usr\/bin\/javaws<\/code>.<\/p>\n<p>Do I also need to do this for <code>\/usr\/bin\/javac<\/code> in order to be fully consistent? For some reason <code>\/usr\/bin\/javac<\/code> does not exist by default. Running <code>javac -verion<\/code> only produces a suggestion that I use <code>apt-get<\/code> to install it but hesitate to jump to the conclusion that it is not installed. Of course if I use <code>javac<\/code> I would want to be consistent and have version 7, but I&#8217;m not sure if I use <code>javac<\/code>.<\/p>\n<p>I create <code>.jar<\/code> files using Eclipse and I&#8217;m not sure what goes on inside Eclipse.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve setup Java 7 at \/usr\/bin\/java in ubuntu 12.04 to replace the default which is Java 6. I have done the same for \/usr\/bin\/javaws. Do I also need to do this for \/usr\/bin\/javac in order to be fully consistent? For some reason \/usr\/bin\/javac does not exist by default. Running javac -verion only produces a suggestion [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4731","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4731"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4731\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}