please include function mechList_raw. static void mL_setCacheTime(double seconds) { lock mechList_raw_lock; mechList_raw_cache = new ExpiringHashMap(toMS_int(seconds)); }