if you still were using your old windows game files and you say you were using them since a few years ago, the windows files got an update. So you need to update your windows files for the recent jars, (since a few months ago) for the game to work properly.
EDIT: Exact reason was because the jdk inside the windows files moved from jdk 11 to jdk 17, if you advanced/lazy enough, you can try overwriting them, download jdk from here
You must be registered to see the links
. buuuuut I'm not a regular 'round here, there might be another issue at hand. just a guess