I've installed update-alternatives --query java | grep Value Value: /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java
and, ant -version Picked up _JAVA_OPTIONS: -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on -Xmx512M Apache Ant(TM) version 1.8.2 compiled on June 20 2012 on GNU/Linux x86_64 kernel 3.1.10 I'm attempting a source build of Apache Solr 3.6.1 cd /usr/local/apache-solr-3.6.1 ant clean Picked up _JAVA_OPTIONS: -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on -Xmx512M Buildfile: /usr/local/apache-solr-3.6.1/build.xml clean: clean: [echo] Building solr... clean: BUILD SUCCESSFUL Total time: 0 seconds ant compile Picked up _JAVA_OPTIONS: -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on -Xmx512M Buildfile: /usr/local/apache-solr-3.6.1/build.xml validate: compile-tools: ivy-availability-check: [echo] [echo] This build requires Ivy and Ivy could not be found in your ant classpath. [echo] [echo] (Due to classpath issues and the recursive nature of the Lucene/Solr [echo] build system, a local copy of Ivy can not be used an loaded dynamically [echo] by the build.xml) [echo] [echo] You can either manually install a copy of Ivy 2.2.0 in your ant classpath: [echo] http://ant.apache.org/manual/install.html#optionalTasks [echo] [echo] Or this build file can do it for you by running the Ivy Bootstrap target: [echo] ant ivy-bootstrap [echo] [echo] Either way you will only have to install Ivy one time. [echo] [echo] 'ant ivy-bootstrap' will install a copy of Ivy into your Ant User Library: [echo] /root/.ant/lib [echo] [echo] If you would prefer, you can have it installed into an alternative [echo] directory using the "-Divy_install_path=/some/path/you/choose" option, [echo] but you will have to specify this path every time you build Lucene/Solr [echo] in the future... [echo] ant ivy-bootstrap -Divy_install_path=/some/path/you/choose [echo] ... [echo] ant -lib /some/path/you/choose clean compile [echo] ... [echo] ant -lib /some/path/you/choose clean compile [echo] [echo] If you have already run ivy-bootstrap, and still get this message, please [echo] try using the "--noconfig" option when running ant, or editing your global [echo] ant config to allow the user lib to be loaded. See the wiki for more details: [echo] http://wiki.apache.org/lucene-java/HowToContribute#antivy [echo] ivy-fail: BUILD FAILED /usr/local/apache-solr-3.6.1/build.xml:44: The following error occurred while executing this line: /usr/local/apache-solr-3.6.1/lucene/common-build.xml:540: The following error occurred while executing this line: /usr/local/apache-solr-3.6.1/lucene/common-build.xml:298: Ivy is not available Total time: 0 seconds ivy's alread installed, rpm -qa | grep -i ivy apache-ivy-2.2.0-11.1.noarch ls -al /usr/share/java/ivy* -rw-r--r-- 1 root root 915K Apr 2 07:38 /usr/share/java/ivy-2.2.0.jar lrwxrwxrwx 1 root root 13 Jul 22 12:52 /usr/share/java/ivy.jar -> ivy-2.2.0.jar trying, ant -lib /usr/share/java/ compile ivy-fail: BUILD FAILED /usr/local/apache-solr-3.6.1/build.xml:44: The following error occurred while executing this line: /usr/local/apache-solr-3.6.1/lucene/common-build.xml:540: The following error occurred while executing this line: /usr/local/apache-solr-3.6.1/lucene/common-build.xml:298: Ivy is not available fails, as does, cat /etc/ant.conf # ant.conf (Ant 1.8.x) # JPackage Project <http://www.jpackage.org/> # Validate --noconfig setting in case being invoked # from pre Ant 1.6.x environment if [ -z "$no_config" ] ; then no_config=true fi # Setup ant configuration if $no_config ; then # Disable RPM layout rpm_mode=false else # Use RPM layout rpm_mode=true # ANT_HOME for rpm layout ANT_HOME=/usr/share/ant fi ant --noconfig -lib /usr/share/java compile Picked up _JAVA_OPTIONS: -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on -Xmx512M Error: Could not find or load main class org.apache.tools.ant.launch.Launcher next, trying [echo] 'ant ivy-bootstrap' will install a copy of Ivy into your Ant User Library: [echo] /root/.ant/lib ant ivy-bootstrap ls -al /root/.ant/lib/*jar -rw-r--r-- 1 root root 926K Sep 23 2010 /root/.ant/lib/ivy-2.2.0.jar again/still, ant compile ... ivy-fail: BUILD FAILED /usr/local/apache-solr-3.6.1/build.xml:44: The following error occurred while executing this line: /usr/local/apache-solr-3.6.1/lucene/common-build.xml:540: The following error occurred while executing this line: /usr/local/apache-solr-3.6.1/lucene/common-build.xml:298: Ivy is not available ant --noconfig compile Picked up _JAVA_OPTIONS: -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on -Xmx512M Error: Could not find or load main class org.apache.tools.ant.launch.Launcher ant -lib /usr/share/java compile ... ivy-fail: BUILD FAILED /usr/local/apache-solr-3.6.1/build.xml:44: The following error occurred while executing this line: /usr/local/apache-solr-3.6.1/lucene/common-build.xml:540: The following error occurred while executing this line: /usr/local/apache-solr-3.6.1/lucene/common-build.xml:298: Ivy is not available ant --noconfig -lib /usr/share/java compile Picked up _JAVA_OPTIONS: -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on -Xmx512M Error: Could not find or load main class org.apache.tools.ant.launch.Launcher Is there additional config magic to try in order to get ant to recognize/find ivy ?