1.jdk and eclipse installation
Links: https://pan.baidu.com/s/1j-bW-svDnpfgPF4SbdWfPA
Extraction code: kbiw
2.Java reference books
Links: https://pan.baidu.com/s/1R8KuArpUunK3tdBtbxmBCw
extraction code: k3py
3.JDK installation
-
Install jdk
-
Recommended not to change the JDK installation path, the other by default to select the default settings, click Next
to change the path of the students must remember the location of the installation
-
Click Next.
-
JDK on the installation was successful
4.window10 environment variable configuration
1. Locate the computer (if students can not find their own Baidu how to create a shortcut), right-click Properties
2. Click Advanced system settings, click on the bottom right corner of the environment variable
3. Locate the path system variables, click Edit
4. first find you install path, installed by default in c drive. (In my presentation) to find bin directory and then copy down (Figure 1) path, delete the environment variable front of the C: \ ProgramData \ Oracle \ Java \ javapath ( Figure 2), paste in your path. Followed by click OK.
5. Verify that the success of
(1) to find the cmd command prompt (2) input javac (3) as shown below to see if it is not, an error check which step the upper side.
5.Eclipse installation
1.解压安装文件,点击eclipse.exe 的应用程序
2.设置Eclipse工作空间 改为:.\eclipse-workspace 点击launch
3.初始化,第一次进应该是下面这个界面 把welcome×掉
4.编写第一个程序,按照我下图点,先创建一个项目
5.选java project 点击next
6.编写项目名称(我写的就是hello),点击finish
7.点击 Don‘t Create
8. 接着创建一个类
9. 编辑name 和点击 public static void main(String[] args) 为函数创建一个main()方法,点击finish
10.下面就是创建好的Hellojava程序了
11.你的第一个java程序诞生了
6.Eclipse中怎么将JRE换成JDK_Java
https://blog.csdn.net/hj7jay/article/details/79784665
Eclipse默认是使用jre,而不是jdk, 这样会造成swing等组件的引入缺失,因此需要将jre改成jdk.
请参考上面博主的文章,我就不多阐述了。
提示
1.如果有什么问题可以给我留言
2.自己安装一点要注意系统是32位还是64位
3.以上是我多次安装验证,按照流程来问题应该不大。