Using Java on Linux

Source: Internet
Author: User

Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.

How Linux differs from Windows

The operation of Windows begins with a graphical interface and then generates commands from the background to the operating system
Linux is a direct operation command to the operating system
The structure of Windows is >> drive letter >> Clip

The structure of Linux is >> clip

Linux download and installation 1, first from the VM program installed

Then download the centOS7 image file on the Internet.
2. Create a new virtual machine in the VM and configure the virtual machine configuration.

The directory structure of the CentOS Linux

Commands for Linux

Linux JDK Download and installation

1. Get the download path for the JDK on the Oracle company's website
2. Download the wget command on Linux

3. Unzip the file by Tar-zvx-f file name

Environment configuration for JDK

Writing Java code in Linux

Syntax rules for Java

The grammatical structure of 1.Java is the same as c\c++.
2.Java Case Sensitive
3. Parentheses are in pairs
4. After each line of code, end with a semicolon
5. A Java file can contain multiple classes but only one class with the public modifier and must match the Java file name. The compiled file is named after the text behind your class.

Using Java on Linux

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.