Before we get started with the steps, first try and reinstall Minecraft to ensure there are no corrupt files causing issues. Make sure you save your worlds properly so you don't lose any progress.
Here are the three easiest ways to fix Java’s “not recognized as an internal or external command” error: Install or reinstall Java and the JDK on your computer Add Java’s bin directory to the computer ...
An old version of Java may be why the JNI error has occurred in Minecraft. To fix this issue, you’ll need to install the latest JDK (Java Development Kit). However ...
Are you getting the Windows cannot find javaw.exe error message while a Java-based app? Javaw.exe is an executable component integrated within the Oracle Java Runtime ...