Listing dependencies of App in Info.plist

Discussion in 'Mac Programming' started by satyam90, Feb 12, 2009.

  1. macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #1
    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?
     
  2. macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    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.
     
  3. thread starter macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #3
    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.
     
  4. macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #4
    As far as I know, neither of those are possible in Info.plist... :(
     

Share This Page