I have a sample app that I want to access the file system from. I'm happy with the FileConnection API and how to use it but how do I replicate the Windows type functionality where, during installation a user can specify the base directroy for their application data? Is there a way of setting environment variables in J2ME? I know I can use the FileSystemRegistry.listRoots method to get the roots but I don't want the user to have to verify the base path each time they startup.