{"id":5772,"date":"2014-04-06T20:18:11","date_gmt":"2014-04-06T20:18:11","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/06\/what-is-the-value-of-java_home-for-centos-collection-of-common-programming-errors\/"},"modified":"2014-04-06T20:18:11","modified_gmt":"2014-04-06T20:18:11","slug":"what-is-the-value-of-java_home-for-centos-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/06\/what-is-the-value-of-java_home-for-centos-collection-of-common-programming-errors\/","title":{"rendered":"What is the value of JAVA_HOME for CentOS?-Collection of common programming errors"},"content":{"rendered":"<p>You want to set JAVA_HOME to be the root location of the JDK or JRE, for example:<\/p>\n<pre><code>export JAVA_HOME=\/usr\/java\/jdk1.3\n<\/code><\/pre>\n<p>If the JDK (Development kit) is installed, ypu probably want it to point to that, else use the JRE path (Java Runtime Environment). Then, you might want to set your $PATH environment variable to include the bin directory as well:<\/p>\n<pre><code>export PATH=$PATH:\/usr\/java\/jdk1.3\/bin\n<\/code><\/pre>\n<p>If you are using tomcat, you might also need to set CATALINA_HOME for the tomcat user.<\/p>\n<pre><code>export CATALINA_HOME=\/path\/to\/tomcat\n<\/code><\/pre>\n<p>To set this for the system you want to edit your \/etc\/profile or add a .sh file in \/etc\/profile.d folder. For a particular user you can put it in the users ~\/.profile or ~\/.bash_profile files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You want to set JAVA_HOME to be the root location of the JDK or JRE, for example: export JAVA_HOME=\/usr\/java\/jdk1.3 If the JDK (Development kit) is installed, ypu probably want it to point to that, else use the JRE path (Java Runtime Environment). Then, you might want to set your $PATH environment variable to include the [&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-5772","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5772","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=5772"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5772\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}