I am glad you now have it working.
Type: Posts; User: Norm
I am glad you now have it working.
It has nothing to do with the directory. Edit the file and save it as ANSI
That shows the MyClass.java file was found by the javac command. Now you need to change the source file to a proper text file.
Where is the MyClass.java file? I do not see it listed in the HP folder. It needs to be in the folder where the javac.exe program is being executed.
This line from your console:
shows that the...
Where is the file MyClass.java located?
The javac command was looking in the C:\Users\HP folder for that file.
You need to change directories to be in the same folder that contains the...
It looks like the MyClass.java file has been saved as Unicode not text. Edit the file and save it as text.
It is possible to have multiple JDKs and JREs on your PC. The issue would be that the PATH will point to only a bin folder for each program. When wanting to use a program that is not pointed to by...
Go to the Oracle site and download a JDK from there.
Java(TM) SE Runtime Environment is the jre
Here is The path to my javac.exe file:
C:\Program Files\Java\jdk1.8.0_60\bin\javac.exe
The JDK programs are in a folder with jdk at the start of the folder name.
If the OS does not find the...
Please copy the full contents of the command prompt window and paste it here so we can see the command that was entered and the response.
My commandline refers to a file on my PC. The path would probably be different on your PC. You need to use the path from your PC
You need to know where files are located on your PC
and how the...
The command line I posted could be used in any command prompt window. The full path to the javac.exe file is given which allows the OS to find the javac.exe file and start it executing with the rest...
One way is to use the full path the the javac.exe file so the OS can find it. For example, here is a commandline I use:
C:\Program Files\Java\jdk1.8.0_60\bin\javac.exe -cp . -Xlint -Xdiags:verbose...