Could I get an "official" version of h2.dll via IKVM

304 views
Skip to first unread message

roo...@gmail.com

unread,
Mar 19, 2008, 12:48:12 PM3/19/08
to H2 Database
Hi,

I've used the directions from the following link to create a .NET
h2.dll using IKVM from H2 version 1.0.68:

http://groups.google.com/group/h2-database/browse_thread/thread/400bc5a9bc9de3fd

There were a variety of warnings given below that I suspect I can
ignore if not using the console or full text search. Or that I could
resolve by applying IKVM to servlet.jar and the lucene jars.

Would it be possible to get a semi-official version of the .NET h2.dll
from the H2 team? I can certainly continue on with my own version but
I'd prefer to be working with the same version that others would get
if they are interested in trying this out.

In case you are curious, my use case is that we have a cross-platform
product that needs to be able to generate database files on either
Windows or UNIX using an embedded database. I'd like to use h2.jar
embedded in our Java app for the initial database file creation,
the .NET version of h2.dll embedded in our .NET application for the
stand-alone Windows client case, and h2.jar running under Tomcat for
the Java-server/Windows-client case.

Thanks,
Charlie Roosen


C:\Documents and Settings\roosen\My Documents\Downloads
\ikvmbin-0.36.0.5\ikvm-0.
36.0.5\bin>ikvmc.exe -target:library -version:1.0.68.0 ..\..\..
\h2-2008-03-15\h2
\bin\h2.jar
Note IKVMC0002: output file is "h2.dll"
Note IKVMC0003: automatically adding reference to "c:\documents and
settings\roo
sen\my documents\downloads\ikvmbin-0.36.0.5\ikvm-0.36.0.5\bin
\ikvm.openjdk.class
library.dll"
Warning IKVMC0100: class "org.apache.lucene.index.IndexModifier" not
found
Warning IKVMC0100: class "org.apache.lucene.index.IndexReader" not
found
Warning IKVMC0100: class
"org.apache.lucene.analysis.standard.StandardAnalyzer"
not found
Warning IKVMC0100: class "org.apache.lucene.search.IndexSearcher" not
found
Warning IKVMC0100: class "org.apache.lucene.queryParser.QueryParser"
not found
Warning IKVMC0100: class "org.apache.lucene.analysis.Analyzer" not
found
Warning IKVMC0100: class "org.apache.lucene.search.Query" not found
Warning IKVMC0100: class "org.apache.lucene.search.Searcher" not found
Warning IKVMC0100: class "org.apache.lucene.search.Hits" not found
Warning IKVMC0100: class "org.apache.lucene.document.Document" not
found
Warning IKVMC0100: class "org.apache.lucene.document.Field" not found
Warning IKVMC0100: class "org.apache.lucene.document.Field$Store" not
found
Warning IKVMC0100: class "org.apache.lucene.document.Field$Index" not
found
Warning IKVMC0100: class "org.apache.lucene.document.Fieldable" not
found
Warning IKVMC0100: class "org.apache.lucene.document.DateTools
$Resolution" not f
ound
Warning IKVMC0100: class "org.apache.lucene.document.DateTools" not
found
Warning IKVMC0100: class "org.apache.lucene.index.Term" not found
Warning IKVMC0100: class "org.h2.tools.indexer.HtmlConverter" not
found
Warning IKVMC0100: class "org.h2.tools.code.CheckTextFiles" not found
Warning IKVMC0100: class "org.h2.tools.doc.XMLParser" not found
Warning IKVMC0105: unable to compile class
"org.h2.server.web.DbStarter"
(missing class "javax.servlet.ServletContextListener")
Warning IKVMC0105: unable to compile class
"org.h2.server.web.WebServlet"
(missing class "javax.servlet.http.HttpServlet")

Thomas Mueller

unread,
Mar 20, 2008, 1:30:42 PM3/20/08
to h2-da...@googlegroups.com
Hi,

You can safely ignore the warnings. Those classes are not required.
There are some classes in the org.h2.tools package that shouldn't be
there (org.h2.tools.i18n.PrepareTranslation and so on), I will remove
them. The Lucene classes are not required unless you want to use the
Lucene fulltext search. And org.h2.server.web.DbStarter / WebServlet
are not required.

Of course I could create a .dll and add it to the downloads, but this
version wouldn't be any better than what you have. I think I will not
upload the dll at the moment. However I will write a short section in
the docs how to use H2 in .NET and C#.

Regards,
Thomas

Reply all
Reply to author
Forward
0 new messages