{"id":529,"date":"2015-05-17T16:13:40","date_gmt":"2015-05-17T16:13:40","guid":{"rendered":"http:\/\/hosting-marketers.com\/news\/?p=529"},"modified":"2015-05-17T16:13:40","modified_gmt":"2015-05-17T16:13:40","slug":"how-to-install-java-8-jdk-8u45-on-centos-6-64-bit","status":"publish","type":"post","link":"https:\/\/hosting-marketers.com\/news\/2015\/05\/17\/how-to-install-java-8-jdk-8u45-on-centos-6-64-bit\/","title":{"rendered":"How to install Java 8 (JDK 8u45) on Centos 6- 64 bit"},"content":{"rendered":"<p># cd \/opt\/<br \/>\n# wget http:\/\/hosting-marketers.com\/downloads\/jdk-8u45-linux-x64.tar.gz<br \/>\n# tar xzf jdk-8u45-linux-x64.tar.gz<\/p>\n<h2 class=\"heading1\">Install Java with Alternatives<\/h2>\n<p>After extracting archive file use <strong>alternatives<\/strong> command to install it. alternatives command is available in <strong>chkconfig<\/strong> package.<\/p>\n<pre># cd \/opt\/jdk1.8.0_45\/\r\n# alternatives --install \/usr\/bin\/java java \/opt\/jdk1.8.0_45\/bin\/java 2\r\n# alternatives --config java\r\n\r\n\r\nThere are 3 programs which provide 'java'.\r\n\r\n  Selection    Command\r\n-----------------------------------------------\r\n*  1           \/opt\/jdk1.7.0_71\/bin\/java\r\n + 2           \/opt\/jdk1.8.0_25\/bin\/java\r\n   3           \/opt\/jdk1.8.0_45\/bin\/java\r\n\r\nEnter to keep the current selection[+], or type selection number: <strong>3<\/strong>\r\n\r\n<\/pre>\n<p>At this point JAVA 8 has been successfully installed on your system. We also recommend to setup javac and jar commands path using alternatives<\/p>\n<pre># alternatives --install \/usr\/bin\/jar jar \/opt\/jdk1.8.0_45\/bin\/jar 2\r\n# alternatives --install \/usr\/bin\/javac javac \/opt\/jdk1.8.0_45\/bin\/javac 2\r\n# alternatives --set jar \/opt\/jdk1.8.0_45\/bin\/jar\r\n# alternatives --set javac \/opt\/jdk1.8.0_45\/bin\/javac \r\n<\/pre>\n<h2 class=\"heading1\">Check Installed Java Version<\/h2>\n<p>Check the installed version of java using following command.<\/p>\n<pre>root@tecadmin ~# java -version\r\n\r\n\r\njava version \"1.8.0_45\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_45-b14)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)\r\n\r\n<\/pre>\n<h2 class=\"heading1\">Configuring Environment Variables<\/h2>\n<p>Most of java based application\u00e2\u20ac\u2122s uses environment variables to work. Set the Java environment variables using following commands<\/p>\n<ul>\n<\/ul>\n<ul>\n<li>Setup <strong>JAVA_HOME<\/strong> Variable<\/li>\n<\/ul>\n<pre><strong># export JAVA_HOME=\/opt\/jdk1.8.0_45<\/strong>\r\n<\/pre>\n<ul>\n<\/ul>\n<ul>\n<li>Setup <strong>JRE_HOME<\/strong> Variable<\/li>\n<\/ul>\n<pre><strong># export JRE_HOME=\/opt\/jdk1.8.0_45\/jre<\/strong>\r\n<\/pre>\n<ul>\n<\/ul>\n<ul>\n<li>Setup <strong>PATH<\/strong> Variable<\/li>\n<\/ul>\n<pre><strong># export PATH=$PATH:\/opt\/jdk1.8.0_45\/bin:\/opt\/jdk1.8.0_45\/jre\/bin<\/strong>\r\n<\/pre>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p># cd \/opt\/ # wget http:\/\/hosting-marketers.com\/downloads\/jdk-8u45-linux-x64.tar.gz # tar xzf jdk-8u45-linux-x64.tar.gz Install Java with Alternatives After extracting archive file use alternatives command to install it. alternatives command is available in chkconfig package. # cd \/opt\/jdk1.8.0_45\/ # alternatives &#8211;install \/usr\/bin\/java java \/opt\/jdk1.8.0_45\/bin\/java 2 # alternatives &#8211;config java There are 3 programs which provide &#8216;java&#8217;. Selection Command &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2],"tags":[122],"class_list":["post-529","post","type-post","status-publish","format-standard","hentry","category-hosting-marketers-news","tag-java-8"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9Yxzd-8x","jetpack-related-posts":[{"id":461,"url":"https:\/\/hosting-marketers.com\/news\/2014\/01\/22\/installing-java-7-on-centos-6-openjdk\/","url_meta":{"origin":529,"position":0},"title":"Installing java 7 on centos 6 (OpenJDK)","author":"Admin","date":"January 22, 2014","format":false,"excerpt":"We use to run java OpenJDK 6 on our servers, but the new version OpenJDK 7 is more secure and some of our customers have start requesting, so here are the instructions for installing and setting the correct variables. For the previous post on installing OpenJDK 6 please see red5\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":150,"url":"https:\/\/hosting-marketers.com\/news\/2010\/01\/17\/how-to-install-red5-version-0-8-and-0-9-on-centos-5-4\/","url_meta":{"origin":529,"position":1},"title":"How To Install RED5 version 0.8 or 0.9 on CENTOS","author":"Admin","date":"January 17, 2010","format":false,"excerpt":"RED5 is open source flash server written in java supports streaming audio\/video, recording client streams, shared objects, live stream publishing etc. In this short steps you can install red5 server on your virtual server or dedicated. This is post is being modified on 27th August 2013, the installation is for\u2026","rel":"","context":"In &quot;rtmp hosting&quot;","block_context":{"text":"rtmp hosting","link":"https:\/\/hosting-marketers.com\/news\/category\/rtmp-hosting\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":533,"url":"https:\/\/hosting-marketers.com\/news\/2015\/07\/04\/download-red5-0-8-final-1-0-2-1-0-5\/","url_meta":{"origin":529,"position":2},"title":"Download Red5 | 0.8 final | 1.0.2 | 1.0.5","author":"Admin","date":"July 4, 2015","format":false,"excerpt":"Sometimes you cannot find the red5 version you need, specially the 0.8 and the 1.0.2, for this reason we decided to upload to our servers these versions. Download red5 0.8 final Download red5 1.0.2 version Just in case the 1.0.5 version you can also download it here. For the installation\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":131,"url":"https:\/\/hosting-marketers.com\/news\/2009\/11\/18\/could-not-reserve-enough-space-for-object-heap\/","url_meta":{"origin":529,"position":3},"title":"Could not reserve enough space for object heap","author":"Admin","date":"November 18, 2009","format":false,"excerpt":"Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":449,"url":"https:\/\/hosting-marketers.com\/news\/2014\/01\/12\/comparison-between-wowza-media-server-vs-red5-and-vs-adobe-flash-media-server\/","url_meta":{"origin":529,"position":4},"title":"Comparison between Wowza Media Server vs Red5 and vs Adobe Flash Media Server","author":"Admin","date":"January 12, 2014","format":false,"excerpt":"UPDATE 2021: As of this year 2021, Adobe Flash has been disabled for all Browsers, so Red5 and FMS (flash media server) do not work. Video chats using flash have stopped working. The only way at this moment is to use HTML5 players. We at Hosting Marketers have setup a\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":112,"url":"https:\/\/hosting-marketers.com\/news\/2009\/09\/22\/red5-tutorial-and-red5-hosting\/","url_meta":{"origin":529,"position":5},"title":"Red5 Tutorial and Red5 Hosting","author":"Admin","date":"September 22, 2009","format":false,"excerpt":"Red 5 is a pretty amazing server software written in java. The Red 5 development team has put in tons of effort to make it a open source alternative to Adobe FMS ? Flash Media Server. Red 5 is a perfectly suitable technology for ?Video On Demand? applications, streaming, publishing,\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":2,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":531,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts\/529\/revisions\/531"}],"wp:attachment":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}