You probably want TransactionStore$Transaction - that's how the jvm refers to inner classes.
On Tuesday, December 8, 2015 at 9:06:08 AM UTC-6, Ryan Waters wrote: > > I'm probably making a dumb mistake but I've been unable to import the > necessary classes to do transactions in H2 (MVMap interface). > > I receive the following error at the repl: > ------------------------------------------------------- > user=> (in-ns 'asdf.core) > #object[clojure.lang.Namespace 0x46d3c2c8 "asdf.core"] > asdf.core=> (clojure.core/load-file "src/asdf/core.clj") > > CompilerException java.lang.ClassNotFoundException: > org.h2.mvstore.db.TransactionStore.Transaction, > compiling:(/home/rwaters/asdf/src/asdf/core.clj:1:1) > asdf.core=> > ------------------------------------------------------- > > Here's my project.clj: > (defproject asdf "0.1.0-SNAPSHOT" > :dependencies [[org.clojure/clojure "1.7.0"] > [com.h2database/h2 "1.4.189"]]) > > And here's core.clj: > (ns asdf.core > (:import [org.h2.mvstore MVMap MVStore] > [org.h2.mvstore.db TransactionStore] > [org.h2.mvstore.db.TransactionStore Transaction])) > > > Notice how the imports before 'Transaction' are successful. I can't seem > to import any class defined in org.h2.mvstore.db.TransactionStore: > > https://github.com/h2database/h2database/blob/master/h2/src/main/org/h2/mvstore/db/TransactionStore.java > > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fh2database%2Fh2database%2Fblob%2Fmaster%2Fh2%2Fsrc%2Fmain%2Forg%2Fh2%2Fmvstore%2Fdb%2FTransactionStore.java&sa=D&sntz=1&usg=AFQjCNGYr8ZgI5CvN_pau3GmKi_GAgI8Zg> > > I was using the following test code as a point of reference: > > https://github.com/h2database/h2database/blob/master/h2/src/test/org/h2/test/store/TestTransactionStore.java > > Thank you, > Ryan > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.