<div dir="ltr"><div dir="ltr">I do not know why ant 1.10.11 insists on using Java 11 when my system is clearly configured for Java 8. However, if I do:<div><br></div><div>export JAVA_HOME=/usr/lib/jvm/java-1.8.0<br></div><div><br></div><div>ant will pick up the correct version of Java and all is good.</div><div><br></div><div>Thanks.</div><div><br></div><div>Blake</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 8, 2022 at 9:58 AM Mark Evenson <<a href="mailto:evenson@panix.com">evenson@panix.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Mar 7, 2022, at 23:41, Blake McBride <<a href="mailto:blake@mcbride.name" target="_blank">blake@mcbride.name</a>> wrote:<br>
> <br>
> Greetings,<br>
> <br>
> I am building the latest SVN version of ABCL on a Linux box. Here is what I am seeing:<br>
> <br>
> <br>
> $ java -version<br>
> openjdk version "1.8.0_322"<br>
> OpenJDK Runtime Environment (build 1.8.0_322-b06)<br>
> OpenJDK 64-Bit Server VM (build 25.322-b06, mixed mode)<br>
> $ javac -version<br>
> javac 1.8.0_322<br>
> $ env |grep JAVA<br>
> $ ant<br>
> [...]<br>
> abcl.init:<br>
> [echo] java.version: 11.0.14.1<br>
> [...]<br>
> $<br>
> <br>
> Why is the build using Java 11?<br>
> <br>
> Thanks!<br>
<br>
Unfortunately, I cannot provide any useful help from the information you have provided. I suspect something within Ant is overriding the shell environment, but don’t know how to meaningfully proceed “remotely”. <br>
<br>
Nothing has changed recently in the structure of our Ant based build, so if this worked for you before on the same user/machine I would expect it to continue to work. <br>
<br>
Some ideas:<br>
<br>
I would look into how/where the `javac` command executes. It might be symlink via the Linux “alternatives” system that somehow has a different execution path. <br>
<br>
I would look into how the `ant` execution is specified from the shell. I sometimes use the `jenv` utility which uses a shim for Ant execution that can get confused.<br>
<br>
I might create a new user to see if the problem is present in a “clean” environment as well. <br>
<br>
I might create a toy Ant build.xml file that uses the <javac> target to see which javac is being picked up. <br>
<br>
Sincerely,<br>
Mark Evenson<br>
<br>
-- <br>
"A screaming comes across the sky. It has happened before but there is nothing <br>
to compare to it now."<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div></div>