在创建“User.java”和空白“Persistence.java”后,我得到一个编译“Example.java”的异常。以下是详细信息:
Exception in thread "main" java.lang.NoClassDefFoundError: com/netflix/astyanax/AstyanaxConfiguration
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.alvazan.orm.api.base.Bootstrap.createInstance(Bootstrap.java:71)
at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:64)
at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:60)
at nosql.Example.main(Example.java:16)
Caused by: java.lang.ClassNotFoundException: com.netflix.astyanax.AstyanaxConfiguration
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more
据我了解,内存数据库测试不需要安装 Cassandra。
我需要做什么?