{"id":281,"date":"2015-07-03T15:27:44","date_gmt":"2015-07-03T15:27:44","guid":{"rendered":"http:\/\/smartfoxserver.com\/blog\/?p=281"},"modified":"2015-07-11T12:23:52","modified_gmt":"2015-07-11T12:23:52","slug":"running-smartfoxserver-2x-with-java-8","status":"publish","type":"post","link":"https:\/\/smartfoxserver.com\/blog\/running-smartfoxserver-2x-with-java-8\/","title":{"rendered":"Running SmartFoxServer 2X with Java 8"},"content":{"rendered":"<p>Java 8 has been out for year now and it&#8217;s probably the most &#8220;radical&#8221; release of Java ever. With the new functional\/lambda additions it feels almost like a new language.<\/p>\n<p>SmartFoxServer 2.10 fully supports Java 8 but since it comes as a patch it still relies on the previous runtime (Java 7) coming with SFS 2.9<\/p>\n<p>If you&#8217;re interested in taking advantage of the new Java 8 features for your server Extension code you can follow these simple steps:<\/p>\n<p><!--more--><\/p>\n<p><strong>1)<\/strong> Download the JRE 8 from Oracle&#8217;s website:<br \/>\n<a class=\"postlink\" href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jre8-downloads-2133155.html\">http:\/\/www.oracle.com\/technetwork\/java\/ &#8230; 33155.html<\/a><br \/>\nMaking sure to match the architecture of your OS (32 vs 64 bit)<\/p>\n<p><strong>2)<\/strong> Uncompress the download and replace the new<strong> jre\/<\/strong> folder under the root of your SmartFoxServer 2X installation. This will overwrite the previous JRE. (This operation <strong>is not required<\/strong> under MacOS X)<\/p>\n<p><strong>3)<\/strong> One last step is required for the embedded Jetty server:<\/p>\n<p>Open the <strong>SFS2X\/lib\/jetty\/modules\/npn\/<\/strong> folder and duplicate one of the files in the folder. Example:<br \/>\nduplicate file &#8220;npn-1.7.0_45.mod&#8221; and rename it so that the version number matches the new JRE.\u00a0For instance: if you have downloaded JRE 1.8.0_25 the file will be renames as &#8211;&gt; &#8220;npn-1.8.0_25.mod&#8221;<\/p>\n<p>You&#8217;re ready to run SFS2X with Java 8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java 8 has been out for year now and it&#8217;s probably the most &#8220;radical&#8221; release of Java ever. With the new functional\/lambda additions it feels almost like a new language. SmartFoxServer 2.10 fully supports Java 8 but since it comes as a patch it still relies on the previous runtime (Java 7) coming with SFS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[23],"tags":[],"_links":{"self":[{"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/posts\/281"}],"collection":[{"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":4,"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartfoxserver.com\/blog\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}