{"id":1209,"date":"2017-12-04T05:15:57","date_gmt":"2017-12-04T05:15:57","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1209"},"modified":"2020-01-09T09:35:22","modified_gmt":"2020-01-09T09:35:22","slug":"creating-launchers-for-java-applications","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/creating-launchers-for-java-applications\/","title":{"rendered":"Creating Launchers for Java Applications"},"content":{"rendered":"<p><strong>deployexpert created the topic: Creating Launchers for Java Applications<\/strong><br \/>\nInstallAnywhere provides an action that is available from the Install task which will<br \/>\ncreate launchers for Java applications. Click the Create Launcher button. This action<br \/>\ncreates a platform-native executable for launching a Java application (also known as a<br \/>\nLAX executable). This LAX allows Java applications to be launched as if they were<br \/>\nplatform-native (for example, the LaunchAnywhere executable can be launched by<br \/>\ndouble-clicking or by being called directly from the command line). A<br \/>\nLaunchAnywhere executable is also responsible for invoking the Java runtime, setting<br \/>\nthe environment for the Java application, and passing any command line arguments<br \/>\nthat may be required by the application.<br \/>\nWhen adding a LaunchAnywhere action you will be given the option to search for the<br \/>\nmain class of your Java application. You can let InstallAnywhere find it for you, or you<br \/>\ncan enter it yourself. You can also define the command line arguments that should to<br \/>\nbe passed to your Java application when the LaunchAnywhere executable is run.<br \/>\nOn Windows, InstallAnywhere will append .exe to the file. On Mac OS X, it will create<br \/>\na .app package.<br \/>\nDefining the Launcher Type allows developers to specify whether the Java application<br \/>\nis either a GUI-based application calling javaw.exe (stdout and stderr suppressed by<br \/>\ndefault), or a console application calling java.exe (stdout and stderr directed to the<br \/>\nconsole by default). In addition, on Windows systems, console launchers will redirect<br \/>\nstdout and stderr output to the same console window from which they were invoked.<br \/>\nThe Launcher Icon enables developers to select the icon to be used for the LAX<br \/>\nexecutable on the Mac OS X and Windows platforms. Custom icons are not available<br \/>\non Unix installers. Mac OS X icons may be 128 x 128.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>deployexpert created the topic: Creating Launchers for Java Applications InstallAnywhere provides an action that is available from the Install task which will create launchers for Java applications. Click the Create&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[173],"class_list":["post-1209","post","type-post","status-publish","format-standard","hentry","category-general","tag-java"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1209"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1209\/revisions"}],"predecessor-version":[{"id":1211,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1209\/revisions\/1211"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}