{"id":1995,"date":"2015-06-01T16:25:24","date_gmt":"2015-06-01T16:25:24","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=1995"},"modified":"2015-07-01T14:55:58","modified_gmt":"2015-07-01T14:55:58","slug":"getting-the-project-files","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/programming-in-c\/compilers-and-ides\/netbeans-windows\/getting-the-project-files","title":{"rendered":"Getting the project files"},"content":{"rendered":"<h4>\nGet the project files from the RPi?<br \/>\n<\/h4>\n<p>\nTo find out&nbsp;where NetBeans&nbsp;copies the files to on the RPi look in the &#39;Output&#39; window for &quot;Entering directory&quot;, e.g.:\n<\/p>\n<p style=\"margin-left: 40px;\">\nmake[1]: Entering directory &#39;\/root\/.netbeans\/remote\/192.168.1.183\/dell-m4600-win7-Windows-x86_64\/C\/_PROJECTS\/SomeFolderName\/Apps\/MyApp\/MyAppName&#39;\n<\/p>\n<p>\nNote that if you look for this location using the GUI file manager you will need to select the menu option View &gt; Show hidden\n<\/p>\n<p>\nFrom the command line of SSH use this to go there:\n<\/p>\n<pre>\r\n<code>\r\ncd &quot;&quot;\r\n<\/code><\/pre>\n<p>\nso in this example\n<\/p>\n<pre>\r\n<code>\r\ncd &quot;\/root\/.netbeans\/remote\/192.168.1.183\/dell-m4600-win7-Windows-x86_64\/C\/_PROJECTS\/SomeFolderName\/Apps\/MyApp\/MyAppName&quot;\r\n<\/code><\/pre>\n<p>\nTo then get your executible&nbsp;you need to move to the sub directory that contains it:\n<\/p>\n<pre>\r\n<code>\r\ncd dist\/Debug\/GNU-Linux-x86\/\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<h4>\nRunning your exe from the command prompt<br \/>\n<\/h4>\n<p>\nIf you are in the same directory:\n<\/p>\n<pre>\r\n<code>.\/myexefile    \/\/The &#39;.&#39; says &#39;in this directory&#39;\r\n<\/code><\/pre>\n<p>\nIf you are in another directory:\n<\/p>\n<pre>\r\n<code>\/home\/pi\/projects\/myexefile<\/code><\/pre>\n<p>\nIf you need root permissions (e.g. your application uses IO control) then add sudo in front of the command to elevate the command permissions to the root user level:\n<\/p>\n<pre>\r\n<code>sudo .\/myexefile<\/code><\/pre>\n<p>\nTo forcibly stop the program use CTRL+Break\n<\/p>\n<h4>\nRunning your exe from the the GUI LXTerminal<br \/>\n<\/h4>\n<p>\nAs above, but to forcibly stop the program use CTRL+SHIFT+C\n<\/p>\n<h4>\nAuto running your exe<br \/>\n<\/h4>\n<p>\nSee <a href=\"https:\/\/raspberry-projects.com\/pi\/pi-operating-systems\/raspbian\/auto-running-programs\">here<\/a>.\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Get the project files from the RPi? To find out&nbsp;where NetBeans&nbsp;copies the files to on the RPi look in the &#39;Output&#39; window for &quot;Entering directory&quot;, e.g.: make[1]: Entering directory &#39;\/root\/.netbeans\/remote\/192.168.1.183\/dell-m4600-win7-Windows-x86_64\/C\/_PROJECTS\/SomeFolderName\/Apps\/MyApp\/MyAppName&#39; Note that if you look for this location using the GUI file manager you will need to select the menu option View &gt; Show hidden [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95],"tags":[],"class_list":["post-1995","post","type-post","status-publish","format-standard","hentry","category-netbeans-windows"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=1995"}],"version-history":[{"count":3,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1995\/revisions"}],"predecessor-version":[{"id":2161,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1995\/revisions\/2161"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=1995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=1995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=1995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}