Does solr-solrj 4.9.0 work on jdk 1.6?

Can Solr 4.9.0 work with solr-solrj API in java 1.6? (It seems to be compiled in java 1.7) I am using solr server 4.9.0 and I need java 1.7, but I want to use it in my project and compile it on java 1.6

+4
source share
1 answer

Solr 4.9.0 was compiled for java7. The latest version that I found compiled for java6 is 4.7.2. You can see this in pom.xml for the project (the corresponding part is reproduced below).

    <plugin>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>3.1</version>
      <configuration>
        <source>1.6</source>
        <target>1.6</target>
      </configuration>
    </plugin>
+5
source

Source: https://habr.com/ru/post/1546721/


All Articles