How to Run Java Program in Command Prompt in Windows 7/8

This video explains you that How to Run Java Program in Command Prompt

For more solutions or Hacks,
Comment below 🙂

Solution Cone

45 thoughts on “How to Run Java Program in Command Prompt in Windows 7/8”

  1. C:UsersSumanDesktop>javac
    error: file not found:

    Usage: javac <options> <source files>

    use –help for a list of possible options

  2. good, but everytime we will not be copying the same path to run every program , we will have to set the path at a place in control panel> System.

  3. "C:UsersAdministratorDesktop>java JavaFile
    Error: Could not find or load main class JavaFile"
    Just to make it clear what I'm talking about here's the baSIC err or message I always get after a successful compilation.

  4. I'm sorry but I am STILL GETTING tha5t error message saying "ERROR : Class [or File] Not Found." I constantly type in the "set path = C:Program FlilesJavajdk[java version]bin" but to no avail! Can someone help me?

  5. My problem for so many days has been just solved within seconds….. Tq very much for this video… Luv it to the coreee

  6. I am so excited. thanks solution care for this video . It's just amazing which helped me today for my exam .

  7. Your video is very informative, it have a very nice explanatory way.
    If you want to have a look for more such videos you can go to #nurserytovarsity in the JAVA Tutorials

  8. cmd command

    set path="C:Program FilesJavajdk8bin"

    cd Desktop

    type command javac

    type After compilation full java text file ._________________________

    run file command [ java hello ——————-press Enter

    show Hello,World

  9. OMG. Thank you.I have read a tausend texts about this javac command and you have the right command. Thank you very much!!!


Leave a Comment