as it mentioned I installed jdk 16 in my win10 64bit,and checked java version in cmd, and it's showing my java versions and even tried creating path like java_home and copying javac.exe path to PATH, but still (i wrote testing program, I'm like super new(noob)) and created (.java)file, and my that file didn't even showed any icon, like java one neither it got recognized in dir, help me here.
I even reinstalled/installed other versions too.
I'm super new.
Does it work when you type 'java MyClass.java" from the directory where MyClass (whatever your source is) is residing in?
I have heard the shebang works if everything is correctly configured on some platforms (not Windows I think) but the normal way to run a 'Single-Source Java Program' from the command line is to say:
where of course MyClass is the appropriate name.
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
java -version show? If it's 16.0.2 you're ok. If not you have to move the last line of your PATH to the very front of the list. As it is now that entry is probably being ignored. You don't want to go around moving your .exe files, you will end up making a real mess that will only be fixable by uninstalling ALL java versions and then doing a reinstall of 16.0.2.