Home TechnologyProgrammingJava Subscribe to RSS

How Can We Run Java Program By Command Prompt? Give Answer In Steps Please?

Answer Question

3 Answers - Sort by: Date | Rating

    Here are the steps :
    *  Open the command prompt
    * Set Path as 'C:\Program FilesJavabin"
    *use the command -> java  here filename is the absolute path of the Java file you wanna compile
    *then to run use javac
    0 0

    Nlgopi  

    answered 7 months ago

      Open your command prompt
      give the path as in your system as c:javabinjdk1.6
      then write javac filename.java
      then java filename
      0 0

      Shrinkhala  

      answered 6 months ago

        You may run program with 2 types..
        1: After installing the java, save your coding in the bin file which is in the c:
          After that go to command prompt
        then go to the bin location then compile the coding  by using the keyword javac and then run.
        0 0

        Ramjiaqua  

        answered 3 months ago

        More

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International