{"id":489,"date":"2016-04-15T11:49:48","date_gmt":"2016-04-15T09:49:48","guid":{"rendered":"http:\/\/home.et.utwente.nl\/slootenvanf\/?p=489"},"modified":"2017-05-08T11:22:13","modified_gmt":"2017-05-08T09:22:13","slug":"check-java","status":"publish","type":"post","link":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/","title":{"rendered":"Checking your Java environment (for use with leJOS)"},"content":{"rendered":"<p>To use leJOS you need 32 bits versions of the JDK and the Java Runtime Environment (JRE). Also, sometimes after updates of Java or multiple removals\/additions the environment can &#8216;go bad&#8217;.<\/p>\n<p>Follow the steps below to test the environment and fix it when necessary.<\/p>\n<h2>Test Java<\/h2>\n<p>Windows must be able to find\u00a0Java programs. Therefore the Java folder should be added to the\u00a0PATH variable of Windows.\u00a0You can check this by executing the command\u00a0&#8216;java -version&#8217; on the\u00a0command-prompt:<\/p>\n<p>Click Start.<br \/>\nType &#8216;cmd&#8217; in the\u00a0search field\u00a0and press Enter.<br \/>\nIn the command-prompt Window, type &#8216;<strong>java -version<\/strong>&#8216; and hit Enter.<\/p>\n<p>If an error is displayed that says that the command can not be found, you will have to adjust the PATH settings. You can read how to do this in the section below.<\/p>\n<p>If information about the installed Java version is displayed, check if it is 32 or 64 bits:<\/p>\n<p>If the last line contains the word &#8216;<code><span class=\"pln\">64-Bit<\/span><\/code>&#8216; you have the wrong version. Remove all Java programs and install the proper version (32 bits, which comes with the zip-package of my course <em>Applicatiebouw<\/em>).<\/p>\n<p>If the last line does NOT contain the word &#8216;<code><span class=\"pln\">64-Bit<\/span><\/code>&#8216; , the installation is fine.<\/p>\n<h2>Adjust the PATH setting of Windows<\/h2>\n<p>Go to the\u00a0Control Panel and click\u00a0&#8216;System&#8217; or right click &#8216;This PC&#8217; in the Windows Explorer and select &#8216;Properties&#8217;<br \/>\nSelect\u00a0&#8216;Advanced System Settings&#8217;.<br \/>\nGo to tab\u00a0&#8216;Advanced&#8217; and click\u00a0&#8216;Environment Variables&#8230;&#8217;.<br \/>\nSearch the second list\u00a0(under\u00a0<em>System Variables<\/em>) for\u00a0&#8216;Path&#8217; and select it.<br \/>\nPress\u00a0&#8216;Edit&#8217;.<br \/>\nIn older Windows versions: Adjust the value\u00a0&#8216;Variable Value&#8217;. The path to the Java bin folder must be added here. Beware that there are multiple folders separated by semicolons\u00a0&#8216;;&#8217;. In Windows 10, you can edit the value using the dialog that appears.<\/p>\n<p>The path list should contain the path &#8220;<strong>C:\\ProgramData\\Oracle\\Java\\javapath<\/strong>&#8221; (if you use the latest Java version). If it is not there add it to the list. If there are other entries (eg. from older Java versions), remove them.<\/p>\n<p>&nbsp;<\/p>\n<p>You will have to restart your computer for the changes to have effect.<\/p>\n<h2>Checking environment variables of LeJOS<\/h2>\n<p>LeJOS needs the environment variable &#8216;LEJOS_NXT_JAVA_HOME&#8217; to point to the right folder.<\/p>\n<p>Click Start.<br \/>\nType &#8216;cmd&#8217; in the\u00a0search field\u00a0and press Enter.<br \/>\nIn the command-prompt Window, type &#8216;<strong>set<\/strong>&#8216;\u00a0and hit Enter.<\/p>\n<p>Review the list and compare the highlighted variables with the ones listed in the image below.<\/p>\n<p>To change these variables you can follow the procedure in the section above (apply it to the variable\u00a0&#8216;LEJOS_NXT_JAVA_HOME&#8217; instead of &#8216;PATH&#8217;).<\/p>\n<p>All\u00a0correct variables for the latest Java version (1.8.0_121) as output by the &#8216;set&#8217; command are highlighted in red below.<\/p>\n<p><a href=\"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-491\" src=\"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java.png\" alt=\"check_java\" width=\"979\" height=\"514\" srcset=\"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java.png 978w, https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java-300x158.png 300w, https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java-768x403.png 768w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To use leJOS you need 32 bits versions of the JDK and the Java Runtime Environment (JRE). Also, sometimes after updates of Java or multiple removals\/additions the environment can &#8216;go bad&#8217;. Follow the steps below to test the environment and fix it when necessary. Test Java Windows must be able to find\u00a0Java programs. Therefore the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[3],"tags":[107,102,105,104,95],"class_list":["post-489","post","type-post","status-publish","format-standard","hentry","category-education","tag-java","tag-lego","tag-lejos","tag-mindstorms","tag-programming"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Checking your Java environment (for use with leJOS) - vanslooten.com<\/title>\n<meta name=\"description\" content=\"Checking your Java environment (for use with leJOS)\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Checking your Java environment (for use with leJOS) - vanslooten.com\" \/>\n<meta property=\"og:description\" content=\"Checking your Java environment (for use with leJOS)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/\" \/>\n<meta property=\"og:site_name\" content=\"vanslooten.com\" \/>\n<meta property=\"article:published_time\" content=\"2016-04-15T09:49:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-08T09:22:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java.png\" \/>\n<meta name=\"author\" content=\"Fjodor van Slooten\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fjodorvs\" \/>\n<meta name=\"twitter:site\" content=\"@fjodorvs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fjodor van Slooten\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/\"},\"author\":{\"name\":\"Fjodor van Slooten\",\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/#\\\/schema\\\/person\\\/e62ff2d6beaa937dc9345a023eeb05dd\"},\"headline\":\"Checking your Java environment (for use with leJOS)\",\"datePublished\":\"2016-04-15T09:49:48+00:00\",\"dateModified\":\"2017-05-08T09:22:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/\"},\"wordCount\":449,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/#\\\/schema\\\/person\\\/e62ff2d6beaa937dc9345a023eeb05dd\"},\"image\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/check_java.png\",\"keywords\":[\"java\",\"lego\",\"lejos\",\"mindstorms\",\"programming\"],\"articleSection\":[\"Education\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/\",\"url\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/\",\"name\":\"Checking your Java environment (for use with leJOS) - vanslooten.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/check_java.png\",\"datePublished\":\"2016-04-15T09:49:48+00:00\",\"dateModified\":\"2017-05-08T09:22:13+00:00\",\"description\":\"Checking your Java environment (for use with leJOS)\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/#primaryimage\",\"url\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/check_java.png\",\"contentUrl\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/check_java.png\",\"width\":978,\"height\":514},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/2016\\\/04\\\/15\\\/check-java\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Checking your Java environment (for use with leJOS)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/#website\",\"url\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/\",\"name\":\"vanslooten.com\",\"description\":\"Personal website of Fjodor van Slooten\",\"publisher\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/#\\\/schema\\\/person\\\/e62ff2d6beaa937dc9345a023eeb05dd\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/#\\\/schema\\\/person\\\/e62ff2d6beaa937dc9345a023eeb05dd\",\"name\":\"Fjodor van Slooten\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/2018-08-24-13.33.38_small.jpg\",\"url\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/2018-08-24-13.33.38_small.jpg\",\"contentUrl\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/2018-08-24-13.33.38_small.jpg\",\"width\":300,\"height\":214,\"caption\":\"Fjodor van Slooten\"},\"logo\":{\"@id\":\"https:\\\/\\\/home.et.utwente.nl\\\/slootenvanf\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/2018-08-24-13.33.38_small.jpg\"},\"sameAs\":[\"http:\\\/\\\/vanslooten.com\",\"https:\\\/\\\/x.com\\\/fjodorvs\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Checking your Java environment (for use with leJOS) - vanslooten.com","description":"Checking your Java environment (for use with leJOS)","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:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/","og_locale":"en_US","og_type":"article","og_title":"Checking your Java environment (for use with leJOS) - vanslooten.com","og_description":"Checking your Java environment (for use with leJOS)","og_url":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/","og_site_name":"vanslooten.com","article_published_time":"2016-04-15T09:49:48+00:00","article_modified_time":"2017-05-08T09:22:13+00:00","og_image":[{"url":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java.png","type":"","width":"","height":""}],"author":"Fjodor van Slooten","twitter_card":"summary_large_image","twitter_creator":"@fjodorvs","twitter_site":"@fjodorvs","twitter_misc":{"Written by":"Fjodor van Slooten","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/#article","isPartOf":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/"},"author":{"name":"Fjodor van Slooten","@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/#\/schema\/person\/e62ff2d6beaa937dc9345a023eeb05dd"},"headline":"Checking your Java environment (for use with leJOS)","datePublished":"2016-04-15T09:49:48+00:00","dateModified":"2017-05-08T09:22:13+00:00","mainEntityOfPage":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/"},"wordCount":449,"commentCount":0,"publisher":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/#\/schema\/person\/e62ff2d6beaa937dc9345a023eeb05dd"},"image":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/#primaryimage"},"thumbnailUrl":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java.png","keywords":["java","lego","lejos","mindstorms","programming"],"articleSection":["Education"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/","url":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/","name":"Checking your Java environment (for use with leJOS) - vanslooten.com","isPartOf":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/#website"},"primaryImageOfPage":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/#primaryimage"},"image":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/#primaryimage"},"thumbnailUrl":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java.png","datePublished":"2016-04-15T09:49:48+00:00","dateModified":"2017-05-08T09:22:13+00:00","description":"Checking your Java environment (for use with leJOS)","breadcrumb":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/#primaryimage","url":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java.png","contentUrl":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2016\/04\/check_java.png","width":978,"height":514},{"@type":"BreadcrumbList","@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/2016\/04\/15\/check-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/home.et.utwente.nl\/slootenvanf\/"},{"@type":"ListItem","position":2,"name":"Checking your Java environment (for use with leJOS)"}]},{"@type":"WebSite","@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/#website","url":"https:\/\/home.et.utwente.nl\/slootenvanf\/","name":"vanslooten.com","description":"Personal website of Fjodor van Slooten","publisher":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/#\/schema\/person\/e62ff2d6beaa937dc9345a023eeb05dd"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/home.et.utwente.nl\/slootenvanf\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/#\/schema\/person\/e62ff2d6beaa937dc9345a023eeb05dd","name":"Fjodor van Slooten","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2019\/06\/2018-08-24-13.33.38_small.jpg","url":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2019\/06\/2018-08-24-13.33.38_small.jpg","contentUrl":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2019\/06\/2018-08-24-13.33.38_small.jpg","width":300,"height":214,"caption":"Fjodor van Slooten"},"logo":{"@id":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-content\/uploads\/2019\/06\/2018-08-24-13.33.38_small.jpg"},"sameAs":["http:\/\/vanslooten.com","https:\/\/x.com\/fjodorvs"]}]}},"_links":{"self":[{"href":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-json\/wp\/v2\/posts\/489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-json\/wp\/v2\/comments?post=489"}],"version-history":[{"count":0,"href":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"wp:attachment":[{"href":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.et.utwente.nl\/slootenvanf\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}