{"id":9157,"date":"2014-03-31T08:11:29","date_gmt":"2014-03-31T08:11:29","guid":{"rendered":"http:\/\/178.62.14.192\/?p=9157"},"modified":"2014-03-31T08:11:29","modified_gmt":"2014-03-31T08:11:29","slug":"using-java-with-the-raspberrypi-including-gpio","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=9157","title":{"rendered":"Using Java with the #RaspberryPi, including GPIO"},"content":{"rendered":"<p>The Java Source has published a couple of videos. The first is all about getting JDK 8 up-and-running on the Pi.<br \/>\n<iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/swW9KJRyLeA\" height=\"315\" width=\"560\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><\/p>\n<p>The second moves onto using Pi4J and controlling the GPIO<br \/>\n<iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/D-cTUEKbJJA\" height=\"315\" width=\"560\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Java Source has published a couple of videos. The first is all about getting JDK 8 up-and-running on the Pi. The second moves onto using Pi4J and controlling the GPIO<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=9157\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[28,39,52],"tags":[],"class_list":["post-9157","post","type-post","status-publish","format-standard","hentry","category-java","category-programming","category-video"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using Java with the #RaspberryPi, including GPIO - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=9157\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Java with the #RaspberryPi, including GPIO - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"The Java Source has published a couple of videos. The first is all about getting JDK 8 up-and-running on the Pi. The second moves onto using Pi4J and controlling the GPIORead more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=9157\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-31T08:11:29+00:00\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=9157#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=9157\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Using Java with the #RaspberryPi, including GPIO\",\"datePublished\":\"2014-03-31T08:11:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=9157\"},\"wordCount\":38,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#organization\"},\"articleSection\":[\"Java\",\"Programming\",\"Video\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=9157#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=9157\",\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=9157\",\"name\":\"Using Java with the #RaspberryPi, including GPIO - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#website\"},\"datePublished\":\"2014-03-31T08:11:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=9157#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=9157\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=9157#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Java with the #RaspberryPi, including GPIO\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.recantha.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.recantha.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/recantha\\\/\",\"https:\\\/\\\/x.com\\\/recantha\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/recantha\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Java with the #RaspberryPi, including GPIO - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=9157","og_locale":"en_US","og_type":"article","og_title":"Using Java with the #RaspberryPi, including GPIO - Raspberry Pi Pod","og_description":"The Java Source has published a couple of videos. The first is all about getting JDK 8 up-and-running on the Pi. The second moves onto using Pi4J and controlling the GPIORead more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=9157","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2014-03-31T08:11:29+00:00","author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=9157#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=9157"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Using Java with the #RaspberryPi, including GPIO","datePublished":"2014-03-31T08:11:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=9157"},"wordCount":38,"commentCount":1,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"articleSection":["Java","Programming","Video"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=9157#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=9157","url":"https:\/\/www.recantha.co.uk\/blog\/?p=9157","name":"Using Java with the #RaspberryPi, including GPIO - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"datePublished":"2014-03-31T08:11:29+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=9157#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=9157"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=9157#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Using Java with the #RaspberryPi, including GPIO"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-2nH","jetpack-related-posts":[{"id":6129,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=6129","url_meta":{"origin":9157,"position":0},"title":"Use Java on the #RaspberryPi to control the GPIO","author":"Michael Horne","date":"26 September 2013","format":false,"excerpt":"Robert Savage has been developing Pi4J, a Java library for the Raspberry Pi that lets you control the GPIO pins. He recently gave a presentation on using the library to the JavaOne conference. His slides and photos, and a little commentary, are available on his blog.\u00a0You can read it here","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=28"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4558,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=4558","url_meta":{"origin":9157,"position":1},"title":"Using Java and XBee on the #RaspberryPi","author":"Michael Horne","date":"10 June 2013","format":false,"excerpt":"Andrew Rapp has been working with Java and sorting out how to integrate it with an XBee.\u00a0Read more here","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7870,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=7870","url_meta":{"origin":9157,"position":2},"title":"Develop Java Apps using the #RaspberryPi &#8211; new MOOC from Oracle","author":"Michael Horne","date":"12 February 2014","format":false,"excerpt":"A new Massive Open Online Course has been released by Oracle, and it's FREE. In this course, you will write Java Embedded applications that: Read input data from switches and drive LED's using the GPIO interface Read temperature and barometric pressure from an I2C device Read the device's current location\u2026","rel":"","context":"In &quot;Education&quot;","block_context":{"text":"Education","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=17"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/apex.oracle.com\/i\/oll\/oll_logo.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1945,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1945","url_meta":{"origin":9157,"position":3},"title":"#RaspberryPi, the BerryClip and Java","author":"Michael Horne","date":"11 February 2013","format":false,"excerpt":"I'm just preparing my BerryClip from Raspberry Pi Spy's Matt Hawkins and this article caught my eye. Random thoughts: Raspberry Pi, the BerryClip and Java. I've had some success in recent days getting the Railo ColdFusion server running with the Jetty webserver. With ColdFusion's interactivity with Java, I'm looking forward\u2026","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"\/blog\/wp-content\/uploads\/2013\/02\/BerryClip-6-LED-Board-300x3001.png","width":350,"height":200},"classes":[]},{"id":3647,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=3647","url_meta":{"origin":9157,"position":4},"title":"JavaFX on the #RaspberryPi and the GPIO (part 2)","author":"Michael Horne","date":"18 April 2013","format":false,"excerpt":"Jens Deters has written the second part of a tutorial in using JavaFX on the Raspberry Pi to control the GPIO.\u00a0Read on here","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=28"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10227,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=10227","url_meta":{"origin":9157,"position":5},"title":"Build an action camera with a #RaspberryPi and Java","author":"Michael Horne","date":"3 July 2014","format":false,"excerpt":"Franco Raimondi wanted to explore the possibilities of the Pi's GPIO pins through Java. To make it a more 'fun' project, he decided to build a GoPro-alike action camera that he could attach to his cycle helmet. He uses the GPIO for a button and two LEDs and the camera\u2026","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rmnd.net\/wp-content\/uploads\/2014\/06\/20140625_205058.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rmnd.net\/wp-content\/uploads\/2014\/06\/20140625_205058.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rmnd.net\/wp-content\/uploads\/2014\/06\/20140625_205058.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.rmnd.net\/wp-content\/uploads\/2014\/06\/20140625_205058.jpg?resize=700%2C400 2x, https:\/\/i0.wp.com\/www.rmnd.net\/wp-content\/uploads\/2014\/06\/20140625_205058.jpg?resize=1050%2C600 3x, https:\/\/i0.wp.com\/www.rmnd.net\/wp-content\/uploads\/2014\/06\/20140625_205058.jpg?resize=1400%2C800 4x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9157"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9157\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}