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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: