Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
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

macrumors G5
Jun 6, 2003
12,110
77
Solon, OH
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

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
In Info.plist, we can place "Java" key with details like minimum JVM version needed etc. please see the link http://developer.apple.com/DOCUMENT...ef/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

macrumors G5
Jun 6, 2003
12,110
77
Solon, OH
In Info.plist, we can place "Java" key with details like minimum JVM version needed etc. please see the link http://developer.apple.com/DOCUMENT...ef/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... :(
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.