Can you copy the contents of the command prompt window and paste it here so we can see exactly what happened?
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'
Many DOS commands like cd will display help with /?
Displays the name of or changes the current directory.
CHDIR [/D] [drive:][path]
CD [/D] [drive:][path]
.. Specifies that you want to change to the parent directory.
Type CD drive: to display the current directory in the specified drive.
Type CD without parameters to display the current drive and directory.
Use the /D switch to change current drive in addition to changing current
directory for a drive.
If Command Extensions are enabled CHDIR changes as follows:
The current directory string is converted to use the same case as
the on disk names. So CD C:\TEMP would actually set the current
directory to C:\Temp if that is the case on disk.
CHDIR command does not treat spaces as delimiters, so it is possible to
CD into a subdirectory name that contains a space without surrounding
Press any key to continue . . .
This is the text from my command prompt
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
The system cannot find the path specified.
I have my Java files saved in \C:\Program Files\Java\jdk1.8.0_131
I strongly recommend you move all your files out of the java folders. Create your own folders for your java files.
Have you seen the tutorial: http://docs.oracle.com/javase/tutorial/getStarted/cupojava/win32.html
Yes, it does help, thank you. It shows that you have correctly installed Java®/the JDK. If you exclude problem A, we know we don't have to worry about it and can devote more attention to the real problem.
Ricky Spanish wrote:I got a successful response when I typed javac -version and java -version into command line, Im not sure if this helps with my question. . . .
NR is correct that you should make your own folder. What I usually suggest is that you pass this instruction (or replace “java” with whichever name you want for your folder) immediately after opening a terminal/command line:-
You only need to do that once per computer. Follow it with
whenever you open a new terminal/command line. Both instructions will work exactly the same on Windows® and Linux boxes (probably Macs too, but I am not sure).
The reason you got a “cannot find path” error may be because that directory doesn't exist, or its name is spelt wrongly.
And . . . welcome to the Ranch