Learn Android: HelloWorld directly from the JDK

Source: Internet
Author: User

This article knows a little bit about the Java compilation mechanism, and tries the pure JDK to HelloWorld

See the JDK tool in the bin directory of the JDK installation location

There are a lot of JDK tools, of course, and the bin at the same level of the directory there are JRE, lib,db and other tools.

A simple understanding of the next Java mechanism,

Use Javac (compile) to compile the source code, which is the suffix. java file, output the class file as a byte code. This is not a direct-to-run file,

It is an interpreter code that needs to be interpreted and run under the Java Virtual Machine (JVM) in the JRE. This is similar to C #, first compiled into an intermediate language, and then to

The. NET environment goes on to explain the run. With such an intermediate process, it is very good to achieve platform-independent. And that's really the advantage of Java.

So in the history of computer development language, no language has been supported by so many vendors as Java, there are so many development tools.

By the way, the relationship between these things:

Under the moving small hand, the name of the class to be consistent with the file name, the name can only be Hello.java

Make the environment variable so that the tools in front of the Jdk/bin directory are easy to call, my Ubuntu is in ~/.profile Edit Export path= jdk. /bin: $PATH

In Source ~/.profile

Learn Android: HelloWorld directly from the JDK

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.