PDA

View Full Version : Listing dependencies of App in Info.plist




satyam90
Feb 13, 2009, 01:31 AM
Inorder to run my application it needs to have JVM 1.5+. I want to provide this dependency details in the Info.plist file of the application so that, while running my application it has to check first whether JVM 1.5+ is available or not. How can I do this?

If some other dependencies are there, how to handle them. For example, if some config file must reside in some fixed location, how to check for that?



wrldwzrd89
Feb 13, 2009, 09:06 AM
Fortunately, you don't have to worry about these things, if you use Jar Bundler to bundle your application. It takes care of this and other details of Info.plist files for you.

As for config information, that doesn't go in Info.plist but rather in the program code.

satyam90
Feb 13, 2009, 09:54 AM
In Info.plist, we can place "Java" key with details like minimum JVM version needed etc. please see the link http://developer.apple.com/DOCUMENTATION/Java/Conceptual/JavaPropVMInfoRef/Articles/JavaDictionaryInfo.plistKeys.html
Similarly I want to have a check for Mono dependency.

Regarding config files, I mean, I have a XML file which must reside in home directory which provides some default values for my application. I want to have a check for such file from Info.plist file itself than to implement in code.

wrldwzrd89
Feb 13, 2009, 10:00 AM
In Info.plist, we can place "Java" key with details like minimum JVM version needed etc. please see the link http://developer.apple.com/DOCUMENTATION/Java/Conceptual/JavaPropVMInfoRef/Articles/JavaDictionaryInfo.plistKeys.html
Similarly I want to have a check for Mono dependency.

Regarding config files, I mean, I have a XML file which must reside in home directory which provides some default values for my application. I want to have a check for such file from Info.plist file itself than to implement in code.
As far as I know, neither of those are possible in Info.plist... :(