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 🙂

Thanx,
Solution Cone

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

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

    Usage: javac <options> <source files>

    use –help for a list of possible options

    Reply
  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.

    Reply
  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.

    Reply
  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?

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

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

    Reply
  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

    Reply
  8. cmd command

    set path="C:Program FilesJavajdk8bin"

    cd Desktop

    type command javac hello.java

    type After compilation full java text file ._________________________

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

    show Hello,World

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

    Reply

Leave a Comment