Downloaded Version java 12.0.2 (includes jre from what I understand)
both java -version and javac -version return correct versions
saved file as .java (checked properties to ensure that no .txt had been appended)
when saving file originally used the *all types
tried saving file as *java (after completely deleting then saving app again as new type)
error: file not found: MyApp1.java.
So, you entered this:
It is unusual to have anything directly in the user's directory. Usually you have a directory under "Documents", and probably a project directory under that. But let's assume you did put it in your user directory.
Assuming that your command line prompt says
C:\Users\myname> Enter the "dir" command. It should look like this
you should see "MyApp.java" appear in the list, correct? Make sure the name is exactly like this with upper and lower case.
Assuming you are using a Windows command window by running "cmd.exe", there is a way to capture text from the screen. Right click on the window header bar and select "mark". Then drag your mouse over some text, then press the Enter key. The text should now be on the clipboard and can be pasted with Ctrl+v.
Generally the prompt changes depending on what directory you are currently running from. So, if you moved your java file to: C:\Users\jessg\Documents then you want your command line prompt to read:
If it only shows
C:\Users\jessg> then you need to change directory. To do this you use the change directory command: "cd". As in
then the prompt should change to
Now type the "dir" command again and look for MyApp.java.
You might want to consider having the following directories
C:\Users\jessg\Documents\Java\MyApp\ and putting your MyApp.java file in there. Of course you'll then need to "cd" to that directory in order to compile or run it.