Java environment variables to configure and install eclipse

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

  1. Install jdk
    Here Insert Picture Description

  2. 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
    Here Insert Picture Description

  3. Click Next.

  4. JDK on the installation was successful
    Here Insert Picture Description

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
Here Insert Picture Description
2. Click Advanced system settings, click on the bottom right corner of the environment variable
Here Insert Picture Description
3. Locate the path system variables, click Edit
Here Insert Picture Description
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.

Here Insert Picture Description
Here Insert Picture Description

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.
Here Insert Picture Description

5.Eclipse installation

1.解压安装文件,点击eclipse.exe 的应用程序
Here Insert Picture Description2.设置Eclipse工作空间 改为:.\eclipse-workspace 点击launch
Here Insert Picture DescriptionHere Insert Picture Description
3.初始化,第一次进应该是下面这个界面 把welcome×掉
Here Insert Picture Description4.编写第一个程序,按照我下图点,先创建一个项目
Here Insert Picture Description
5.选java project 点击next
Here Insert Picture Description
6.编写项目名称(我写的就是hello),点击finish
Here Insert Picture Description
7.点击 Don‘t Create
Here Insert Picture Description
8. 接着创建一个类
Here Insert Picture Description
9. 编辑name 和点击 public static void main(String[] args) 为函数创建一个main()方法,点击finish
Here Insert Picture Description
10.下面就是创建好的Hellojava程序了
Here Insert Picture Description11.你的第一个java程序诞生了
Here Insert Picture Description

6.Eclipse中怎么将JRE换成JDK_Java

https://blog.csdn.net/hj7jay/article/details/79784665
Eclipse默认是使用jre,而不是jdk, 这样会造成swing等组件的引入缺失,因此需要将jre改成jdk.
请参考上面博主的文章,我就不多阐述了。

提示

1.如果有什么问题可以给我留言
2.自己安装一点要注意系统是32位还是64位
3.以上是我多次安装验证,按照流程来问题应该不大。

发布了5 篇原创文章 · 获赞 0 · 访问量 403

Guess you like

Origin blog.csdn.net/weixin_43700568/article/details/104359011