{"id":1915,"date":"2022-08-30T15:20:30","date_gmt":"2022-08-30T15:20:30","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/02\/problem-in-creating-win-installer-in-i-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:20:30","modified_gmt":"2022-08-30T15:20:30","slug":"problem-in-creating-win-installer-in-i-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-in-creating-win-installer-in-i-collection-of-common-programming-errors\/","title":{"rendered":"Problem in creating win installer in i-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to create an executable file (.exe) of iReport with my module included in it. While I run the target the create-iReport-distro-win-installer, I am getting the following error. Note: I am using netbeans 6.5.1<\/p>\n<pre><code>java.io.IOException: Cannot run program \"makensis\" (in directory \"C:\\Program Files\\NetBeans 6.5.1\\iReport-3.7.2-src\"): CreateProcess error=2, The system cannot find the file specified\n        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)\n        at java.lang.Runtime.exec(Runtime.java:593)\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n        at java.lang.reflect.Method.invoke(Method.java:597)\n        at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)\n        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)\n        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)\n        at net.sf.nsisant.Task.execute(Task.java:205)\n        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)\n        at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n        at java.lang.reflect.Method.invoke(Method.java:597)\n        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)\n        at org.apache.tools.ant.Task.perform(Task.java:348)\n        at org.apache.tools.ant.Target.execute(Target.java:357)\n        at org.apache.tools.ant.Target.performTasks(Target.java:385)\n        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)\n        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)\n        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)\n        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)\n        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)\n        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:499)\n        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)\nCaused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified\n        at java.lang.ProcessImpl.create(Native Method)\n        at java.lang.ProcessImpl.(ProcessImpl.java:81)\n        at java.lang.ProcessImpl.start(ProcessImpl.java:30)\n        at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)\n        ... 24 more\nC:\\Program Files\\NetBeans 6.5.1\\iReport-3.7.2-src\\build.xml:327: Command failed: 'makensis \/DPRODUCT_VERSION=3.7.2 \/DPRODUCT_NAME=iReport \/DPRODUCT_WEB_SITE=http:\/\/ireport.sourceforge.net \"C:\\Program Files\\NetBeans 6.5.1\\iReport-3.7.2-src\\etc\\iReportInstaller.nsi\"'\nBUILD FAILED (total time: 1 minute 22 seconds)\n<\/code><\/pre>\n<ol>\n<li>\n<p>You must specify the full path to the nsis executable, like C:\\Programme\\NSIS\\makensis.exe<\/p>\n<p>Or you can add the path to the PATH environment variable: System Settings -&gt; System -&gt; Advanced -&gt; Environment Variables. Don&#8217;t forget to restart Netbeans to recognize a change to this variable.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-12-02 21:17:54. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying to create an executable file (.exe) of iReport with my module included in it. While I run the target the create-iReport-distro-win-installer, I am getting the following error. Note: I am using netbeans 6.5.1 java.io.IOException: Cannot run program &#8220;makensis&#8221; (in directory &#8220;C:\\Program Files\\NetBeans 6.5.1\\iReport-3.7.2-src&#8221;): CreateProcess error=2, The system cannot find the file specified [&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-1915","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1915","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=1915"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1915\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}