Use Notepad to write Java programs (understand the Java program implementation process)

Source: Internet
Author: User
Tags image line

Although there are many programming software to implement Java programs, very few people will use Notepad to write, but this for beginners, this is a good way to understand how Java operation. and others do not understand, you know is not very handsome. (personal view)------------

First, create a new Java file

1. New Notepad (. txt) à rename to Helloworld.java (take new HelloWorld as an example)

2, you may encounter the problem is that there is no extension (the following WIN7 for example)

--Open My Computer

--Discover my computer does not have a menu, organize, layout, and menu bar (the menu bar will appear, that is, the file on the image line)

Tools, Folder Options

--Check out the "Hide extensions of known file types" Check out and OK (this is the extension)

Second, write code

1  Public class helloworld{2     Public Static void Main (string[] args) {3          System.out.println ("My name is Belieflee." ); 4    }5 }

III. implementation of the document

Note: Copy the written. java files to a file that knows the path, such as: C:\User\HYF

1. Open Run->cmd

2, first execute Javac Helloworld.java (through the compiler, convert. Java source files to. class bytecode files)

3, in the implementation of Java HelloWorld (do not Add. class, if the error is added, through the interpreter to implement the Code function)

Use Notepad to write Java programs (understand the Java program implementation process)

Related Article

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.