I am trying to setup my environment to use wsl2 mainly for java tasks. I cloned the project inside the wsl directories and I am able to open the project from Intellij. Also I configured Intellij to use wsl's jdk. Until here everything works fine. But when I try to add wsl ant installation to Intellij it fails with the below error.
ant.jar not found in directory '\wsl.localhost\Ubuntu\usr\share\ant\lib
When I check from the explorer the jar is there. I tried to copy ant installation with all its jars under my wsl home folder, it did not work from there either. Any idea about what is the problem here?