Vinoth, The JAVA_HOME and ANT_HOME environment variables don't necessarily mean that java and ant from that location are used.
ant: You'll have to add the value of $ANT_HOME to your PATH environment variable. java: /usr/bin/javac is another java than the one specified in $JAVA_HOME. If you want to use the java specified in $JAVA_HOME you'll have to add the value of $JAVA_HOME to the PATH environment variable (before the location that contains the default java) Martin > Hi can any one tell me how to rectify this > > > [EMAIL PROTECTED] gt4.0.5-all-source-installer]$ ./configure --prefix=/usr > --with-iodbc=/usr/lib > checking build system type... i686-pc-linux-gnu > checking for javac... /usr/bin/javac > configure: WARNING: the javac in your path is not from your $JAVA_HOME > environment > checking for ant... no > configure: WARNING: ant is needed for some parts of the toolkit > configure: WARNING: If you know you will not need one > configure: creating ./config.status > config.status: creating Makefile > > FYI > > [EMAIL PROTECTED] gt4.0.5-all-source-installer]$ echo $JAVA_HOME > /usr/java/jdk1.6.0_02 > [EMAIL PROTECTED] gt4.0.5-all-source-installer]$ which javac > /usr/bin/javac > [EMAIL PROTECTED] gt4.0.5-all-source-installer]$ echo $ANT_HOME > /opt/apache-ant1.7.0/bin > [EMAIL PROTECTED] gt4.0.5-all-source-installer]$ echo $PATH > /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin > > Can any tell me how to get rid off the errors? > > Thanks > Vinoth Rayappan Gopalakrishnan > Wayne State University > Computing & Information Technology > Phone: (313) 577 9601 > E-mail: [EMAIL PROTECTED] >
