{"id":926,"date":"2010-10-09T11:50:47","date_gmt":"2010-10-09T10:50:47","guid":{"rendered":"http:\/\/sahits.ch\/blog\/?p=926"},"modified":"2010-10-09T11:50:47","modified_gmt":"2010-10-09T10:50:47","slug":"java-on-synologys-nas-509","status":"publish","type":"post","link":"http:\/\/sahits.ch\/blog\/blog\/2010\/10\/09\/java-on-synologys-nas-509\/","title":{"rendered":"Java on Synology&#8217;s NAS 509+"},"content":{"rendered":"<p>Patience is a vitue. After letting the problem of Java on my Synology NAS 509+ rest (see <a href=\"http:\/\/sahits.ch\/blog\/?p=848\">Yet another Try to get Java running<\/a> and <a href=\"http:\/\/sahits.ch\/blog\/?p=726\">Compiling for Synology DS509+<\/a>) the problem solved itself.<!--more--><br \/>\nAfter upgrading to the DiskManager 3.0 and all installed packages I did a routinely check on the <a href=\"http:\/\/ipkg.nslu2-linux.org\/feeds\/optware\/syno-e500\/cross\/unstable\">IPKG repository<\/a> and discovered the package <a href=\"http:\/\/jamvm.sourceforge.net\/\">JamVm<\/a> which can be used as a java runtime. Then I saw that the new disk manager brought the jikes installation which can be used to compile java classes.<br \/>\nJikes works as expected:<\/p>\n<pre>\r\necho \"public class App{\r\npublic static void main(String[] args){\r\n    System.out.println(\"Hello World\");\r\n}   \r\n}\" > App.java\r\njikes -cp \/opt\/lib\/rt.jar App.java\r\n<\/pre>\n<p>However jamvm throws a <code>Segmentation fault (core dumped)<\/code> error when invoked. <\/p>\n<pre>jamvm -cp \/opt\/lib\/rt.jar App<\/pre>\n<p>Unfortunately it is so that jamvm is only available for ARM based processors and not PowerPC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Patience is a vitue. After letting the problem of Java on my Synology NAS 509+ rest (see Yet another Try to get Java running and Compiling for Synology DS509+) the problem solved itself.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[161,301,141],"class_list":["post-926","post","type-post","status-publish","format-standard","hentry","category-java","category-linux","tag-ds509","tag-java","tag-nas"],"_links":{"self":[{"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/posts\/926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/comments?post=926"}],"version-history":[{"count":2,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions"}],"predecessor-version":[{"id":937,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions\/937"}],"wp:attachment":[{"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/media?parent=926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/categories?post=926"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/tags?post=926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}