{"id":28171,"date":"2018-01-14T16:51:16","date_gmt":"2018-01-14T16:51:16","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=28171"},"modified":"2018-01-14T16:53:00","modified_gmt":"2018-01-14T16:53:00","slug":"java-running-program-when-path-not-set","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/java-running-program-when-path-not-set\/","title":{"rendered":"<span style=\"color:#b22222\">Java: running program when path not set<\/span>"},"content":{"rendered":"<div style=\"color:#b22222\">\n<h1>Tutoring comp sci, you experiment a lot. The tutor shares one.<\/h1>\n<p>The <span style=\"font-size:130%;font-family:monospace\">java<\/span> command, in Windows, anyway, seems to like a space between the directory and the filename you are running.<\/p>\n<p style=\"font-size:130%;font-family:monospace\">java -cp f:\/dir1\/dir2 program_file<\/p>\n<p><em>not<\/em><\/p>\n<p style=\"font-size:130%;font-family:monospace\">java -cp f:\/dir1\/dir2\/program_file<\/p>\n<p>Source:<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/7620811\/java-program-execution-in-cmd-without-using-set-path-or-system-variables\">stackoverflow.com<\/a><\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Tutoring comp sci, you experiment a lot. The tutor shares one. The java command, in Windows, anyway, seems to like a space between the directory and the filename you are running. java -cp f:\/dir1\/dir2 program_file not java -cp f:\/dir1\/dir2\/program_file Source: &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/java-running-program-when-path-not-set\/\"> <span class=\"screen-reader-text\"><span style=\"color:#b22222\">Java: running program when path not set<\/span><\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1801],"tags":[2674,472],"class_list":["post-28171","post","type-post","status-publish","format-standard","hentry","category-java","tag-running-a-java-program-from-command-prompt-when-path-not-set","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/28171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=28171"}],"version-history":[{"count":30,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/28171\/revisions"}],"predecessor-version":[{"id":28201,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/28171\/revisions\/28201"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=28171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=28171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=28171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}