echo--My first Java learning class

Source: Internet
Author: User

Graduated to now has 12 years, programming language also learned c,vb,vb.net, SAP-ABAP, this year began to learn Java, hope how many can learn something, to their future work is helpful.

One, DOS command

1.rd Delete Files folder

2.md Creating folders

3. Exit the folder CD. /.. /

4. Go to Folder CD

5. A point is the current directory, two points is the parent directory

6. Create a file by way of pipeline

Example 1:echo abc>a.txt

Action: Creates a a.txt with the contents of ABC under the current path

Job one, how to forcibly delete a folder

Example 2:test.bat

@echo off

For%%i inch (a,b,c) do echo%%i

Pause>nul

Direct execution, screen effect:

Job two, Bat script reader to file

Second, Java installation JRE contains JVM JDK Java Development Kit

Common development tools in the Bin directory are Java.exe,jar.exe,java.exe,native2ascii.exe

Installation of JDK Control Panel, system and safety systems

Class hello{

Java's main program, the entrance to the program

public static void Main (String args[]) {

System.out.println ("Hello World");

}

}

Save As Hello.java on the desktop first
Then set the bin directory of the path=jdk1.6 (C:\Users\HP\Desktop\jdk1.8.0_45\bin)
Set Path=c:\users\hp\desktop\jdk1.8.0_45\bin
Re-compiling Javac Hello.java
Execute Java Hello again
You can also create a new script Test2.bat
@echo off
Set path=c:\users\hp\desktop\jdk1.8.0_45\bin;%path%;
Javac Hello.java
Java Hello
Pause>nul
Windows Settings
New user variable, environment variable, System properties, variable name path variable value

echo--My first Java learning class

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.