Hello!
My program works fine, but I can’t get the export to work. I get the windows-amd64 folder, but there is no exe file in there. I have no idea what I’m doing wrong. Any help is appreciated!!
I’m using processing 4.0.1 with Java on Windows
LANGUAGE 0, 1
1 RCDATA BEGIN “java\0” END
2 RCDATA BEGIN “17\0” END
18 RCDATA BEGIN “1\0” END
30 RCDATA BEGIN “2\0” END
12 RCDATA BEGIN “-Djna.nosys=true -Djava.library.path=”“EXEDIR\lib”“\0” END
1 ICON DISCARDABLE “C:\Program Files (x86)\processing-4.0.1-windows-x64\processing-4.0.1\modes\java\application\application.ico”
21 RCDATA BEGIN “https://adoptium.net/\0” END
20 RCDATA BEGIN “32\0” END
101 RCDATA BEGIN “An error occurred while starting the application.\0” END
102 RCDATA BEGIN “This application requires a Java Runtime Environment.\0” END
103 RCDATA BEGIN “This application requires a Java Runtime Environment\0” END
104 RCDATA BEGIN “The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.\0” END
15 RCDATA BEGIN “noise_snakesJava\0” END
16 RCDATA BEGIN “lib\noise_snakesJava.jar;lib\core.jar;lib\gluegen-rt.jar;lib\jogl-all.jar\0” END
windows:
BUILD FAILED
C:\Users\jakob\Desktop\processing4_projects\snakes\noise_snakesJava\windows-amd64\launch4j-build.xml:5: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: Exec failed (1): C:\Program Files (x86)\processing-4.0.1-windows-x64\processing-4.0.1\modes\java\application\launch4j\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\jakob\AppData\Local\Temp\launch4j1755002834322060967rc C:\Users\jakob\AppData\Local\Temp\launch4j9527183472688095209o
at net.sf.launch4j.Builder.build(Builder.java:149)
at net.sf.launch4j.ant.Launch4jTask.execute(Launch4jTask.java:111)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
at processing.mode.java.JavaBuild.buildWindowsLauncher(JavaBuild.java:1151)
at processing.mode.java.JavaBuild.exportApplication(JavaBuild.java:978)
at processing.mode.java.JavaBuild.exportApplication(JavaBuild.java:591)
at processing.mode.java.JavaMode.handleExportApplication(JavaMode.java:183)
at processing.mode.java.ExportPrompt.trigger(ExportPrompt.java:349)
at processing.mode.java.ExportPrompt.trigger(ExportPrompt.java:115)
at processing.mode.java.JavaEditor.handleExportApplication(JavaEditor.java:483)
at processing.mode.java.JavaEditor.lambda$buildFileMenu$0(JavaEditor.java:238)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:374)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1028)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1072)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
at java.desktop/java.awt.Component.processEvent(Component.java:6391)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: net.sf.launch4j.ExecException: Exec failed (1): C:\Program Files (x86)\processing-4.0.1-windows-x64\processing-4.0.1\modes\java\application\launch4j\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\jakob\AppData\Local\Temp\launch4j1755002834322060967rc C:\Users\jakob\AppData\Local\Temp\launch4j9527183472688095209o
at net.sf.launch4j.Util.exec(Util.java:156)
at net.sf.launch4j.Cmd.exec(Builder.java:215)
at net.sf.launch4j.Builder.build(Builder.java:100)
… 57 more
When you have this kind of issue, you can search on GitHub issues on the Processing repository:
I don’t know if one of them solves your issue but otherwise you can create a new one (if you are familiar with GitHub and have an account). Maybe on Processing4’s repository since you are using it…