Java starts from zero the first day

Source: Internet
Author: User

Java is an excellent programming language. Java also has many advantages. Start from scratch. This is the first day, not why, but let yourself learn more.

1. Download the JDK

Http://www.oracle.com/index.html in the browser. Go to Oracle Website

Click Downloads-Javase

Click JDK DownloadDownload and install the JDK, then select the path to install it. I'm not going to do a lot of introductions here. I'm sure everyone will. 2. Configure Environment Variableshttp://jingyan.baidu.com/article/f96699bb8b38e0894e3c1bef.html here in detail on the tutorial. Finally, emphasize one point. Remember not to miss out on the last ";" Symbol. 3. HelloWorld of the first Java programRecommended for beginners, use a silent text editor such as Windows Notepad.    
 Public class helloworld{      publicstaticvoid  main (String args[]) {                  System.out.println ("Hello, this is one of my Java programs");}             }

After entering the above code, save the text file as Helloworld.java note case

4. Compile the program and run

Click the Start menu, click Run, enter CMD in the dialog box, and then OK. Bring up the command prompt windowAt the command-line prompt, enter the directory where the source code is located: Enter d:f at the command line: So you can enter D and then enter the CD Stuart this is the directory to enter the D-disk Stuart and then enter Javac Helloworld.java here on the command line. Note the case in the file There's a helloworld.class file in the folder. This is a compiled program best we have to run the program in the command line input Java HelloWorld believe that you have some knowledge of java. Thank you!

Java starts from zero the first day

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.