Exporting the Sketch

edited April 2017 in Using Processing

Hey hey, I have a quick question that I couldn't solve for 2 days now. I wrote a little program (Pong) just to get in touch with Processing and back into java again. Program runs fine mostly with just some minor stuff I want to tweak.

Now I wanted to export it so I could potentially run it on a friends PC, but when I export it, the folder is empty, even though it says it was successfull and opens said folder with stuff in it (exe and so on.) but when I take a look into the folder manually its empty again.

When I first start up the PC, he doesen't even throw an error, but if I try it a second time the following pops up

Compiling resources Linking Successfully created C:\Users\Arkoudaki\Desktop\Pong\Pong\application.windows32\Pong.exe java.io.IOException: Move to trash failed: C:\Users\Arkoudaki\Desktop\Pong\Pong\application.windows64: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird. at com.sun.jna.platform.win32.W32FileUtils.moveToTrash(W32FileUtils.java:40) at processing.app.Platform.deleteFile(Platform.java:373) at processing.app.Mode.prepareExportFolder(Mode.java:1012) at processing.mode.java.JavaBuild.exportApplication(JavaBuild.java:755) at processing.mode.java.JavaBuild.exportApplication(JavaBuild.java:708) at processing.mode.java.JavaMode.handleExportApplication(JavaMode.java:248) at processing.mode.java.JavaEditor.exportApplicationPrompt(JavaEditor.java:943) at processing.mode.java.JavaEditor.handleExportApplication(JavaEditor.java:573) at processing.mode.java.JavaEditor$3.actionPerformed(JavaEditor.java:196) 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:833) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) at java.awt.Component.processMouseEvent(Component.java:6533) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6298) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) at java.awt.Container.dispatchEventImpl(Container.java:2280) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 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:76) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) 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) Compiling resources Linking Successfully created C:\Users\Arkoudaki\Desktop\Pong\Pong\application.windows64\Pong.exe

(any formatting tips, it looks kinda confusing)

By the way, "Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird." translates to, can't access, file is being used by another process.

The same thing happens when I try to save the sketch manually, its just not there (not even invisible), but somehow I can reopen it via the "last used" option in processing.

As I can't save it, I can't try it on my laptop for example.

When I run the .exe I get a grey screen, no sound and so on.

Not really sure what to do now, and I'd be glad for some input!

Thanks in advance.

Tagged:

Answers

    • Dunno. Maybe avoid using Windows' system folders like the Desktop? :-??
    • Configure PDE's sketchbook location to point to some subfolder within your Documents' folder or somewhere else away from system folders.
    • Also make sure whether some backup/mirroring app isn't interfering w/ PDE's sketchbook location. L-)
  • edited April 2017 Answer ✓

    Thanks for the tips, I just downloaded the new version of Processing (first on my laptop, now on my pc) and it seemed to run fine, saving and exporting is no problem anymore.

    But suddenly I get a nullpointerexception

    java.lang.NullPointerException at processing.sound.SoundFile.channels(Unknown Source) at processing.sound.SoundFile.play(Unknown Source) at Pong.draw(Pong.java:105) at processing.core.PApplet.handleDraw(PApplet.java:2418) at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1540) at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)

    But I'll figure it out someway or another, just a little weird if things suddenly stop working.

    EDIT: I'm pretty dumb, I refer to .wav sound files, but only imported the old mp3 ones, happens when you reinstall and shove folders from left to right haha. Everyxthing works now, thanks again !

Sign In or Register to comment.