lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonghui Zhao <>
Subject how to compile lucene 4.10.4 using jdk7
Date Fri, 24 Nov 2017 14:28:11 GMT

I clone lucene 4.10.4 tag from github and use ant to build.

My ant and local jdk in mac info:

*Apache Ant(TM) version 1.9.9 compiled on February 2 2017*
*Trying the default build file: build.xml*
*Buildfile: /Users/yozhao/src/lucene-solr/lucene/core/build.xml*
*Detected Java version: 1.7 in:
*Detected OS: Mac OS X*

I use simple one word "ant" command to build the jar, and copy the jar to
my Centos server.
Jdk in the server is 1.7.0_67

But when I start my service, exception thrown

 20 Exception in thread "main" java.lang.NoSuchMethodError:
 21   at$SingleBufferImpl.<init>(
 22   at
 23   at
 24   at
 25   at
 26   at
 27   at

This should be some issue with jdk version. I compile in 1.7.0_45 and run
in 1.7.0_67 why can this happen?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message