We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi guys, i'm trying to export the sketch like an application. The sketch run corretly, if the sketch hasn't images and if i export it, run correctly, but, if i put images in the sketch and subsequently export it, the application show me just a grey window. I tried to export for Windows and i tried to export embedding Java and i tried to export not embedding Java but the result is always the same if there are images in the sketch. Can somebody help me? Thanks
Answers
Not with the information you've given.
Where and what are the images?
I found the solution: i just had to put the images also in the exported application folder create after the exportation
It'll do that automatically if the images are in the data directory. Use either the add file menu option or drag the files onto the pde.
See loadImage in the reference.
I put the images in the data sketch directory and the sketch run correctly but the problem happened when i exported the application, is like if exportation didn't move the images in the sketch folder to exported application folder
Without knowing exactly what you're doing I'm not going to say. But it has always worked for me in the past.
Ok, this is just a test. Try to run this code into the sketch and after try to export it and run the exported application. For me work just the sketch not exported.
i've just tried this using my own code. and it's fine.
the above doesn't show us where the image is, which i suspect is the problem.
project source:
exported directory:
My image is in the data folder like in your project source example, the difference is in the exported directory, here, there isn't the image. I put it in manually
@R_Sørensen What OS are you using as well as Processing version?
Kf
Windows 10 Home, 64 bit