{"id":1081,"date":"2012-08-27T14:29:41","date_gmt":"2012-08-27T06:29:41","guid":{"rendered":"http:\/\/www.magicandlove.com\/blog\/?p=1081"},"modified":"2012-08-27T14:30:56","modified_gmt":"2012-08-27T06:30:56","slug":"telling-32-bit-or-64-bit-in-java","status":"publish","type":"post","link":"http:\/\/www.magicandlove.com\/blog\/2012\/08\/27\/telling-32-bit-or-64-bit-in-java\/","title":{"rendered":"Telling 32-bit or 64-bit in Java"},"content":{"rendered":"<p>Here is a short tip to check whether the current machine (JVM) is running 32 bit or 64 bit in Java and thus Processing.<br \/>\n&nbsp;<\/p>\n<pre lang=\"java\">\r\nint arch = Integer.parseInt(System.getProperty(\"sun.arch.data.model\"));\r\n<\/pre>\n<p>&nbsp;<br \/>\nThe integer variable <strong>arch<\/strong> will give either 32 or 64 depending on the JVM.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a short tip to check whether the current machine (JVM) is running 32 bit or 64 bit in Java and thus Processing. &nbsp; int arch = Integer.parseInt(System.getProperty(&#8220;sun.arch.data.model&#8221;)); &nbsp; The integer variable arch will give either 32 or 64 depending on the JVM.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66],"tags":[113,114,112,111],"class_list":["post-1081","post","type-post","status-publish","format-standard","hentry","category-testing","tag-32-bit","tag-64-bit","tag-architecture","tag-java"],"_links":{"self":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/1081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/comments?post=1081"}],"version-history":[{"count":3,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/1081\/revisions"}],"predecessor-version":[{"id":1084,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/1081\/revisions\/1084"}],"wp:attachment":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/media?parent=1081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/categories?post=1081"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/tags?post=1081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}