hakanai / luceneupgrader

Library to upgrade the on-disk format of Lucene indexes across multiple versions
Apache License 2.0
12 stars 3 forks source link

can't compile on windows #7

Closed gfanini closed 2 years ago

gfanini commented 3 years ago

on windows 10 64 bit :

C:\Users\x\Downloads\luceneupgrader-master\luceneupgrader-master>buildr (in C:/Users/x/Downloads/luceneupgrader-master/luceneupgrader-master, development) This extension is now included as part of the core Buildr library The javadoc method is deprecated and will be removed in a future release. Building luceneupgrader Compiling luceneupgrader into C:/Users/x/Downloads/luceneupgrader-master/luceneupgrader-master/target/classes Buildr aborted! Java::JavaLangReflect::InaccessibleObjectException : Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to module org.jruby.dist

(See full trace by running task with --trace)

I tried java 64 bit versions 8, 9. 11 all have this error I installed buildr with

jruby -S gem install buildr

hakanai commented 3 years ago

The .ruby-version file in the current repository says to run the build using Ruby 2.0.0-p451, but it looks like for you it's being run using JRuby. So my guess is that perhaps you're just not using rbenv on your system, so it is running with whatever Ruby is found on the path, instead of the version the build has been confirmed to work with.

So getting rbenv up and running is probably the way to go. But the way forward for this project is probably to move to Gradle to make the build easier to run.

gfanini commented 3 years ago

I've no idea about ruby, another question, is it reasonable that lucene.net in c# seems to be able to open an index created by compass lucene of about 2009 v. 2.2 ? for my needs it's enough c# windows, in case any clues if it handles old versions

hakanai commented 3 years ago

I've never tried Lucene.NET. Or CLucene for that matter.

Lucene itself could have kept support for older indexes if it wanted to. Especially once codecs came into the picture, making it much easier to support more than one version. But maintenance would have gotten harder and harder, so they chose not to support it.

hakanai commented 2 years ago

The build scripts on the main branch have been switched over to Gradle, and have been confirmed to work on Windows.