Java file cmd command line form run

Source: Internet
Author: User
  • First you have to install the Java JDK and configure the appropriate environment variables.
  • You can create a TXT file in the C drive directory.

  

Change the file suffix name to. java

  • Then open the command line, win+r write cmd Enter
    Common cmd commands:

    File List dir/w
    Go to the Directory CD directory path (tab keyboard is prompted) CD: represent the parent directory
    Directory Structure Print Tree
    View File Contents type
    You can use the TAB key to complete the file selection

    Of course, there is a more concise way, is to go to the directory you want, press the SHIFT + right menu click here to open a command window
  • Run Javac compile command, Javac Test.java, error is code problem. Will generate a CALSS file in C drive

    After the compilation is successful, the Java test is executed to run the
  • This is a successful installation of a wave of force.

Java file cmd command line form run

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.