first, the development environment installation configuration1.1 Installing the JDK
Jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html
Download after the installation directory, I because of personal habits, do not like to put things in the C-disk, the location of the D-disk,
1.2 JDK Configuration Environment variables
Make sure the bin directory is in the top two folders, and then you can start configuring environment variables.
Right click on the desktop "My Computer" → Click on "Properties" to enter the following interface:
Click Advanced system settings → Click environment variables, pop up
Configure as above three, if not, add:
java_home:d:\study\java\jdk9.0--This is a way to tell the system JDK that the system can be found directly
CLASSPATH:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; -Note that there is a point in front of the semicolon that is used to separate
path:;%java_home%\bin;%java_home%\jre\bin;--If it is win10, add these two separately, remove the semicolon
1.3 JDK Configuration Complete test
Press and hold the "window" Key and "R" key, enter "cmd", "Enter" key Enter, enter Java, or Javac, if the first line that pops up below has "usage" explanation, the installation succeeds,
Where you enter "Javac-version" to view the installed JDK version
1.3 Development Tools Installation
1, tools: notepad++,http://notepad-plus-plus.org/--can also be directly in the 360 software manager or Baidu search notepad++ download
2, eclipse--:http://www.eclipse.org/, choose Eclipse IDE for Java developers, the installation process is best to maintain the speed, because the installation process will be automatically downloaded.
1.4 First Java Program
Use Eclipse to create a new project
I wrote the name is study (this can be casually named), after success, then I clicked the study front of the extension button, into the SRC, created a small directory
After creating Day01, right-click Day01, then select New→class, and name Myfirstjavaprogram, then click Finish to create the code as follows:
Package day01; Public class Myfirstjavaprogram { publicstaticvoid main (string[] args) { System.out.print ("Hellow world!" ); }}
Click the Small green button on the toolbar to run and print out Hello World in the console
0 Basic Learning Javase (i)