Re: [I] Multiple ClassNotFoundExceptions in IntelliJ Fat Jar on ARM64 Java 20 [lucene]

2023-11-12 Thread via GitHub
uschindler commented on issue #12307: URL: https://github.com/apache/lucene/issues/12307#issuecomment-1807127120 > Apparently, starting from Lucene 9.x the Multi-Release JAR files are used: Actually, Lucene already used in its 8.x releases the MRJAR features, but without the extra cla

Re: [I] Multiple ClassNotFoundExceptions in IntelliJ Fat Jar on ARM64 Java 20 [lucene]

2023-11-12 Thread via GitHub
uschindler commented on issue #12307: URL: https://github.com/apache/lucene/issues/12307#issuecomment-1807121916 FYI, one reason why they might have done this: if the whole thing is a webapp, with wrong setup or broken containers the class loading is often broken, especially if somebody dro

Re: [I] Multiple ClassNotFoundExceptions in IntelliJ Fat Jar on ARM64 Java 20 [lucene]

2023-11-12 Thread via GitHub
uschindler commented on issue #12307: URL: https://github.com/apache/lucene/issues/12307#issuecomment-1807110136 There is no need to merge those files and as said before this is discouraged. It was never required. I have no idea why they did this. It is and was broken from the beginning.

Re: [I] Multiple ClassNotFoundExceptions in IntelliJ Fat Jar on ARM64 Java 20 [lucene]

2023-11-12 Thread via GitHub
davido commented on issue #12307: URL: https://github.com/apache/lucene/issues/12307#issuecomment-1807097946 @uschindler Thank you for clarifying and for the links to the specifications. What confused me, is that the problem showed up after two changes: using JDK 21 at runtime

Re: [I] Multiple ClassNotFoundExceptions in IntelliJ Fat Jar on ARM64 Java 20 [lucene]

2023-11-08 Thread via GitHub
uschindler commented on issue #12307: URL: https://github.com/apache/lucene/issues/12307#issuecomment-1803320694 Hi, this has nothing to do with the minimum Java version in your Java built, it only has to do with the runtime Java version. If you use Java 19 or later, the classloader need

Re: [I] Multiple ClassNotFoundExceptions in IntelliJ Fat Jar on ARM64 Java 20 [lucene]

2023-11-08 Thread via GitHub
davido commented on issue #12307: URL: https://github.com/apache/lucene/issues/12307#issuecomment-1803192152 @uschindler We are using [Bazel](https://bazel.build) build system, and merging the two JARs like this: # Merge jars so # META-INF/services/org.apache.lucene.code

Re: [I] Multiple ClassNotFoundExceptions in IntelliJ Fat Jar on ARM64 Java 20 [lucene]

2023-10-14 Thread via GitHub
uschindler commented on issue #12307: URL: https://github.com/apache/lucene/issues/12307#issuecomment-1762822051 If you want to create a classical classpath application that can be started with `java -jar application.jar` the correct way is to *NOT* package everything into a fat `applicatio

Re: [I] Multiple ClassNotFoundExceptions in IntelliJ Fat Jar on ARM64 Java 20 [lucene]

2023-10-14 Thread via GitHub
uschindler commented on issue #12307: URL: https://github.com/apache/lucene/issues/12307#issuecomment-1762818363 > @uschindler If fat JARs are not supported or recommended with Lucene, what _is_ the recommended way to deploy a project incorporating Lucene? I cannot find any resources on thi

Re: [I] Multiple ClassNotFoundExceptions in IntelliJ Fat Jar on ARM64 Java 20 [lucene]

2023-10-10 Thread via GitHub
andrewlalis commented on issue #12307: URL: https://github.com/apache/lucene/issues/12307#issuecomment-1756220873 @uschindler If fat JARs are not supported or recommended with Lucene, what *is* the recommended way to deploy a project incorporating Lucene? I cannot find any resources on this