1
我試圖用Clojure從the Infinispan documentation複製的代碼片段:訪問的Infinispan的.class Clojure中
ConfigurationBuilder b = new ConfigurationBuilder();
b.persistence()
.addStore(SoftIndexFileStoreConfigurationBuilder.class)
.indexLocation("/tmp/sifs/testCache/index");
.dataLocation("/tmp/sifs/testCache/data")
這裏是我的嘗試:
(import '[org.infinispan.persistence.sifs.configuration.SoftIndexFileStoreConfigurationBuilder])
(import '[org.infinispan.configuration.cache ConfigurationBuilder])
(def b (ConfigurationBuilder.))
(.addStore (.persistence b)
(class org.infinispan.persistence.sifs.configuration.SoftIndexFileStoreConfigurationBuilder))
;; java.lang.ClassNotFoundException: org.infinispan.persistence.sifs.configuration.SoftIndexFileStoreConfigurationBuilder
如何突破這個例外?這是