StateMachine class not found


Hello, I am testing the CouchBase Lite libraries, but whenever I initialize a Replication object, I get the following exception:

Caused by: java.lang.ClassNotFoundException:
Didn’t find class "com.github.oxo42.stateless4j.StateMachine"
on path:
DexPathList[[zip file “/data/app/com.example.couchbase_prueba3-2/base.apk”],nativeLibraryDirectories=[/data/app/com.example.couchbase_prueba3-2/lib/arm, /vendor/lib, /system/lib]]

(Sorry about my english)


Hi @aruizl,
I believe you are using Eclipse. Can you make sure if stateless4j-2.4.0.jar in CLASSPATH?


Hey, thanks for the answer, yes I am using Eclipse and stateless4j-2.4.0.jar is in the classpath. I have now realised that this also appears for each stateless4j-2.4.0.jar class:

Dx bad class file magic (cafebabe) or version (0033.0000)
…while parsing com/github/oxo42/stateless4j…

Maybe this library is only supported by java 7 or above?


stateless4j-2.4.0.jar is works fine with Android. So it does not requires java 7 or 8.