Processing Export Fails No Matter What

I tried everything that people have suggested, such as moving the sketch and/or the processing files into the root C:\ directory and that did nothing. I have no idea why this is happening because the program runs fine but any program that I try to export does this. I checked and the windres.exe is a valid file in the processing directory so I don’t know why it’s failing. Any help? Thanks. Log:

Compiling resources
The system cannot find the path specified.
C:\processing-3.5.3-windows64\processing-3.5.3\modes\java\application\launch4j\bin\windres.exe: preprocessing failed.
Generated resource file...

LANGUAGE 0, 1
2 RCDATA BEGIN "1.8.0_74\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:\\processing-3.5.3-windows64\\processing-3.5.3\\modes\\java\\application\\sketch.ico"
21 RCDATA BEGIN "http://java.com/download\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 was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.\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 "sketch_190813a\0" END
16 RCDATA BEGIN "lib\\sketch_190813a.jar;lib\\core.jar;lib\\jogl-all.jar;lib\\gluegen-rt.jar;lib\\jogl-all-natives-windows-i586.jar;lib\\gluegen-rt-natives-windows-i586.jar;lib\\gstreamer-java.jar;lib\\jna.jar;lib\\video.jar\0" END


windows:


BUILD FAILED
C:\sketch_190813a\application.windows32\launch4j-build.xml:5: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: Exec failed (1): C:\processing-3.5.3-windows64\processing-3.5.3\modes\java\application\launch4j\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\8BIT_C~1\AppData\Local\Temp\launch4j5369524893352527775rc C:\Users\8BIT_C~1\AppData\Local\Temp\launch4j4291369801357606489o
	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:291)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:390)
	at org.apache.tools.ant.Target.performTasks(Target.java:411)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at processing.mode.java.JavaBuild.buildWindowsLauncher(JavaBuild.java:1231)
	at processing.mode.java.JavaBuild.exportApplication(JavaBuild.java:1102)
	at processing.mode.java.JavaBuild.exportApplication(JavaBuild.java:713)
	at processing.mode.java.JavaMode.handleExportApplication(JavaMode.java:239)
	at processing.mode.java.JavaEditor.exportApplicationPrompt(JavaEditor.java:945)
	at processing.mode.java.JavaEditor.handleExportApplication(JavaEditor.java:575)
	at processing.mode.java.JavaEditor$3.actionPerformed(JavaEditor.java:198)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886)
	at java.awt.Component.processMouseEvent(Component.java:6539)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6304)
	at java.awt.Container.processEvent(Container.java:2239)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2297)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
	at java.awt.Container.dispatchEventImpl(Container.java:2283)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
	at java.awt.EventQueue$4.run(EventQueue.java:733)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: net.sf.launch4j.ExecException: Exec failed (1): C:\processing-3.5.3-windows64\processing-3.5.3\modes\java\application\launch4j\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\8BIT_C~1\AppData\Local\Temp\launch4j5369524893352527775rc C:\Users\8BIT_C~1\AppData\Local\Temp\launch4j4291369801357606489o
	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

Total time: 0 seconds

i noticed a mix of win 64 and win 32

-a- if you have a win 64 PC you install a processing 3.5.3 64bit.
-b- you use a sketch from examples and run it
-c- you save it as your own project with SAVE AS ?sketchX?
-d- you start the Export Application
and enable Windows
and enable embed JAVA for windows (64 bit )
-e- you get a explorer window where you go down windows 64 path only and start:
c:/< users >/…/Processing/sketchX/application.windows64\sketchX.exe

if you start
c:/< users >/…/Processing/sketchX/application.windows32\sketchX.exe
you might get a error depending on your PC installation…

1 Like

The weird thing is that my processing IS 64 bit. Also I tried exporting example sketches and those gave the same error. I also tried reinstalling JRE but that didn’t help either.

my above mentioned procedure work here ( Win 10 / 64Bit )
fine, without any JAVA installed on the PC.
( Processing comes with JAVA ( and also can export exactly THIS JAVA only
( that’s why the 32bit export not work )))

please confirm that you use the
[enable] embed JAVA for windows (64 bit )

yes, you not need that at all.

did you check if

C:\processing-3.5.3-windows64\processing-3.5.3\modes\java\application\launch4j\bin\windres.exe

exists ( or was it deleted by windows defender as reported by others?? )

reinstall Processing

or reset Windows.

1 Like