Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-69

[configuration] FileChangedReloadingStrategy cannot be resolved or is not a type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 33953

    Description

      Hi
      I am using the 1.0 version with all other required jar like
      Java 1.3
      commons-collections-3.0.jar
      commons-lang-2.0.jar
      IDE - WSAD 5.12

      When i tried to code following way which is given in example on the apache site
      itself

      PropertiesConfiguration config = new PropertiesConfiguration("usergui.properties");
      config.setReloadingStrategy(new FileChangedReloadingStrategy());
      String[] colors = config.getStringArray("colors.pie");
      for (int i=0;i<colors.length;i++)
      System.out.println(colors[i]);

      I am getting compile time error
      FileChangedReloadingStrategy cannot be resolved or is not a type

      if i comment out above line then its getting compiled and run propely.

      is it something i am missing or jar which i downloaded is not complete.

      Thanks
      Prashant

      Attachments

        Activity

          People

            Unassigned Unassigned
            prashant.hegu@gmail.com Prashant
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: