Not being able to run said .java file.

+1 Some Person · March 1, 2015
I'm submitting this comment regarding not being able to run the file and returning this error message: The system cannot find the file C:\ProgramData\Oracle\Java\javapath\java.exe.

I don't know why it's doing that...

Post a Reply


Oldest  Newest  Rating
+1 Bernard Pyc0d333 Parah · March 1, 2015
where is the file saved? did you get the same  error running another program?

please try a simple hello world program and see if it runs, then let me know.
0 Some Person · March 2, 2015
For some reason, JRE is installed, but isn't? It's confusing, I don't see any of the other files in JRE as I should regularly.
0 Some Person · March 2, 2015
Hm.. I rewrote the PATH, and restarted my command prompt, but when I rerun the command, it returns with an error like this:

C:\test>java youtube

Error: Could not find or load main class youtube
0 Bernard Pyc0d333 Parah · March 2, 2015
have you compiled it with javac before doing this?
also is the name of the class youtube? if it is a public class, the  class name has to be same as the file name,"youtube in this case"
  • 1

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator