If Java is not working in Windows 11/10, these solutions may help you troubleshoot the issue. Although, due to the lack of NPAPI support, Java applets stopped working in Microsoft Edge, Google Chrome, ...
Windows 11 provides a rich GUI, but it also supports various command line interfaces (CLIs) through a modern Terminal app.