Search code examples
mavensolrsolrj

Maven points to incorrect java folder when I upgrade solr 4.4 in pom.xml


I am currently using solr 4.3.1. I need to upgrade it to solr 4.4. When I change the maven pom to 4.4.0 for solr-core, I am getting error like The container 'Maven Dependencies' references non existing library 'javadir\Java\lib\tools.jar where as my java path is javadir/Java/jdkversion/lib/tools.jar. Whereas my pom.xml is

    <dependency>
        <groupId>org.apache.solr</groupId>
        <artifactId>solr-core</artifactId>
        <version>4.4.0</version>
    </dependency>

I am using eclipse.How to fix this issue?Help me.


Solution

  • I solved this issue. In my machine java was pointing to some other JRE. I uninstalled that JRE. now it is working fine.