Hi,
Is anything different if you run it in a new powershell window ?
Is your user account a windows administrator , or not ?
If you like, share the output of 'hledger setup' ?
The linked 
java.com page talks about an  Environment Variables setting - does that exist/work on windows 11 ?