I want to use an H2 database in my Java project, but unfortunately I can't use any external .jar
or .class
files. (It's a build system out of my control and I can only submit source files to it, stupid as that is.) So I thought to simply download the H2 Java sources and add all these Java packages and Java files directly into my project source folder.
However, after doing so I get several build errors in Eclipse for some of the Java files in the H2 code base. For example, the file "org.h2.jdbc.JdbcStatement" has the following errors: "The type JdbcStatement must implement the inherited abstract method Wrapper.unwrap(Class)". There are also several other errors as well.
So my question is: how can or should I properly add the H2 source files into my Java project?