Java programming with Notepad and cmd (compiled from install ide---run)

Source: Internet
Author: User
Tags windows x64

Introduction to Java

Maximum features---cross-platform

Installation of the Java compilation environment http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Select the JDK download installation for Windows x64

Understanding the directory structure of the JDK

Java_home:c:\program files\java\jdk1.8.0_102

JRE---java Virtual machine

Bin---command management tools

Src.zip Compressed Package---The source code provided by the Java Development Kit

Compile----A. Enter the directory where the Java files are located

Drive letter:

CD Entry Directory

CD: Up-level directory

cd\ root directory

Enter the directory where the Java files are located

Compiling: Using the Javac command

Setting environment variables (variables used in the operating system)

Set Path (Java_home\bin)

Any. EXE can be started via set PATH environment variable (e.g. QQ startup)

Compile the Java file directory E:\work\java 1.java in Lesson;

1.java

Class A
{
public static void Main (string[] args)
{

}
}

The A.class file appears after compilation, that is, the compilation is complete

Run:

No results due to Java program not writing content

PATH environment variable always has effect to set in system

My Computer--Properties--Advanced system settings--environment variables--NEW

Javac has been effective.

Development tools:

ecilse/netbeans/intellij/Notepad----"Editable notepad editplus (download link http://pan.baidu.com/s/1o80a5b8

User:gnu
Serial:918a8-20dd8-44za1-b0w4a-13t66

Java programming with Notepad and cmd (compiled from install ide---run)

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.