No matter whether you want to use it in VS Code or somewhere else, there should not be any problem on Windows 11. Read: How to open or run a JAR file on Windows How do I enable Java on Windows 11?