Odd - ant.bat (and thus, "ant" without an extension) is giving me this:
C:\>ant.bat
Files\Ant was unexpected at this time.
C:\>antenv
and ant.cmd and antenv give me this:
C:\>/*
'/*' is not recognized as an internal or external command,
operable program or batch file.
Java runs fine:
C:\>java --version
java 24.0.1 2025-04-15
Java(TM) SE Runtime Environment (build 24.0.1+9-30)
Java HotSpot(TM) 64-Bit Server VM (build 24.0.1+9-30, mixed mode, sharing)
I'm running Win 11 and I get the same result with cmd and PowerShell...
and current working directory doesn't make a difference. My environment
variables are:
C:\>echo %ANT_HOME%
"C:\Program Files\Ant 1.10.16"
C:\>echo %JAVA_HOME%
"C:\Program Files\Java\jdk-24"
C:\>echo %PATH%
C:\Python313\Scripts\;C:\Python313\;C:\Program
Files\Java\jdk-24\bin;C:\Program Files\Common
Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
Files (x86)\NVIDIA Corporation\PhysX\Common;*_/C:\Program Files\Ant
1.10.16\bin/_*;C:\Program Files\Wolfram
Research\WolframScript\;C:\Program Files\Go\bin;C:\Program Files\NVIDIA
Corporation\NVIDIA app\NvDLISR;C:\Program Files\VSCodium\bin;C:\Program
Files\dotnet\;C:\Program
Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft
SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client
SDK\ODBC\170\Tools\Binn\;C:\Program Files\PowerShell\7\;C:\Program
Files\GitHub CLI\;C:\Program
Files\PowerShell\7-preview\preview;C:\Program Files\PuTTY\;C:\Program
Files\Git\cmd;C:\Program
Files\Tailscale\;C:\Users\Richa\AppData\Local\Microsoft\WindowsApps;C:\Users\Richa\AppData\Local\GitHubDesktop\bin;C:\ghcup\bin;C:\Users\Richa\go\bin;C:\Users\Richa\AppData\Roaming\npm;C:\Program
Files\JetBrains\IntelliJ IDEA Community Edition
2025.2.2\bin;C:\Users\Richa\AppData\Local\Programs\Ollama;C:\Program
Files\GitHub
CLI;C:\Users\Richa\AppData\Local\Programs\Antigravity\bin;C:\Users\Richa\AppData\Local\Keybase\
Thanks,
-Richard
On 2/9/2026 9:48 AM, Stefan Bodewig wrote:
Hi all
On 2026-02-08, Stefan Bodewig wrote:
we've cut a release candidate for what shall become Ant 1.10.16, details
are available from
https://dist.apache.org/repos/dist/dev/ant/RELEASE-NOTES-1.10.16.html
We've had a first issue reported that shows differences in behavior. In
the specific case the same would happen if people switched to Java 25
and kept using Ant 1.10.15.[1]
So we will have a second RC but please keep testing with the one we have
right now. Even with the next RC you may need to change your build files
for 1.10.16 to have your builds behave as before. Without 1.10.16 your
builds would fail for the same reasons when running on Java 24+, but
1.10.16 should at least provide you with options to adapt.
Stefan
[1] For those interested, File#getCanonicalPath has always resolved
symbolic links on Unix but prior to Java 24 not on Windows. Ant uses
this in several places. Part of the changes for 1.10.16 is to switch to
Path#toRealPath instead which resolves symbolic links (and junction) on
Windows as well - likely since Java 7.
If your build relies an links not being resolved, they will break -
either with Java 24+ and Ant 1.10.15 or any version of Java and Ant
1.10.16.
---------------------------------------------------------------------
To unsubscribe, e-mail:[email protected]
For additional commands, e-mail:[email protected]