We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Exported Mac OS X app - where is data file
Page Index Toggle Pages: 1
Exported Mac OS X app - where is data file? (Read 632 times)
Exported Mac OS X app - where is data file?
Apr 19th, 2009, 8:22am
 
My Processing program reads an external file at /Data using loadStrings(). The purpose of the file is to provide a location for data that might need to be changed outside of the program and I expected to see a /Data folder structure show up somewhere in the exported Mac OS X application package. There is no /Data folder in the application package. The application gets its data but I do not know where from. I have moved and file renamed the data file and I also changed the data in the original data file, but the exported application still seems to read the same data that was present at the time it was created. Where is this mysterious file?
Re: Exported Mac OS X app - where is data file?
Reply #1 - Apr 19th, 2009, 9:42am
 
I think it gets compiled right into the jar file (I think all files in the data directory get compiled).  I need to figure this out latter myself as I'm doing something similar.  Try to remove the file before export, so that it doesn't get compiled, then create the data folder and place the file so the program can hopefully open it.  Let me know if it works.. Smiley
Re: Exported Mac OS X app - where is data file?
Reply #2 - Apr 19th, 2009, 5:49pm
 
Your idea worked. I removed the entire Data folder, re-exported and then ran the export. Console messages showed the data file not found. I then dropped the Data folder into the folder the export was in and re-ran the export. Thanks. I would never had thought to do this.
Page Index Toggle Pages: 1