Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-615

unable to instanciate FastByIDMap<PreferenceArray>, ClassNotFoundException for com.google.common.base.Preconditions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.4
    • None
    • None
    • None
    • Windows 7, Java 1.6.0.24, reproducable in eclipse helios and netbeans 6.9

    Description

      this code:

      FastByIDMap<PreferenceArray> map = new FastByIDMap<PreferenceArray>();

      throws an java.lang.ClassNotFoundException, class com.google.common.base.Preconditions cannot be found.
      The error is thrown in FastByIdMap, ln 76, where "Preconditions" cannot be found. In this project, im using the google web toolkit, which is shipped with the Preconditions-class, what propably confuses the class-loader. Anyhow, when im trying the line shown above in netbeans, without any references to gwt, it fails with the very same exception.

      Any questions, suggestions, workarounds etc. appreciated, thanks.

      Attachments

        Activity

          People

            srowen Sean R. Owen
            brndnbg bernd hopp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: