{"id":4649,"date":"2014-03-30T14:16:24","date_gmt":"2014-03-30T14:16:24","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-can-i-launch-an-external-application-from-a-java-gui-in-linux-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:16:24","modified_gmt":"2014-03-30T14:16:24","slug":"how-can-i-launch-an-external-application-from-a-java-gui-in-linux-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-can-i-launch-an-external-application-from-a-java-gui-in-linux-collection-of-common-programming-errors\/","title":{"rendered":"How can I launch an external application from a Java GUI in Linux?-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m creating a Java application that helps people to learn Chinese. I&#8217;ve already created a Java GUI but I&#8217;m struggling to work out how to create a button that launches an external application in a new window.<\/p>\n<p>I&#8217;ve looked up various tutorials on process, desktop and runtime but they all seem to deal with outputting data on the console, and I can&#8217;t figure out how to apply them to this case.<\/p>\n<p>Any help at all would be greatly appreciated! Thanks!<\/p>\n<p>EDIT<\/p>\n<p>So I&#8217;ve incorporated the runtime code into my class and I&#8217;ve got it to list the contents of my file but can&#8217;t get it to launch the application using &#8220;\/home\/kate\/Desktop\/PTAMM .\/PTAMM&#8221; or &#8220;.\/PTAMM \/home\/kate\/Desktop\/PTAMM&#8221; or &#8220;.\/ home\/kate\/Desktop\/PTAMM PTAMM&#8221; (I tried the last two out of desperation). Any suggestions? Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m creating a Java application that helps people to learn Chinese. I&#8217;ve already created a Java GUI but I&#8217;m struggling to work out how to create a button that launches an external application in a new window. I&#8217;ve looked up various tutorials on process, desktop and runtime but they all seem to deal with outputting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4649","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4649"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4649\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}