Home TechnologyProgrammingJava Subscribe to RSS

How Do You Execute A Java File From The Cmd Of Windows?

Answer Question

2 Answers - Sort by: Date | Rating

    To execute Java file from command use the following syntax
    c:/>java filename without extension
    0 0

    Sridhery  

    answered 3 years ago

      You must compile the file before executing
      To compile type:
      javac filename
      it will display errors, if any. Then type
      java filename
      and ur file will be executed
      0 0

      Rana541  

      answered 6 days 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