Thanks to the comments I received on the question it appears that the issue comes from the cmd not preprocessing my command to provide all the files that match the wildcard name, as I expected it would. Thus java crashed because it does not support wildcard references.
A couple solutions were suggested but I went with replacing the batch script packageUpdater.bat by the Powershell script packageUpdater.ps1. I also altered the script to remove the change directory operation because now I can run it directly from the project directory in vs code powershell terminal. I also replaced the UNIX command aliases from my previous script by the correct Powershell commands:
Remove-Item ".Confrontation*",".Defines*",".WorldBasics*"
javac -d . ".sourcesDefines*.java", ".sourcesWorldBasics*.java", ".sourcesConfrontation*.java"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…