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, ...
When a computer gets old or you are handing it over, you must delete everything on it. As a matter of fact, it is important that you also securely wipe the computer so the files are not recoverable.