【Java】第一次搭建Java环境(Windows)
【Java】首次搭建Java环境(Windows)
这篇文章将说明我刚开始学习Java时搭建的环境。希望能对您有所帮助。
使用工具

Eclipse是一种集成开发环境,主要用于支持Java编程语言的开发。
IDE(集成开发环境)是指具备代码编写编辑器、错误检查调试器等功能的开发环境。
1. 下载 Eclipse
请点击以下的网址:
https://mergedoc.osdn.jp/

然后您将跳转到类似于上方图像的屏幕。请点击“Eclipse 2022”。

然后,在Windows x64 > 完整版 Java 行下点击下载,进行安装。

接下来,在”Add the extension”下面,有一个URL被提及。
点击这个URL,开始下载。
当下载完成后,请打开文件夹。

如果出现上述的屏幕,点击详细信息即可出现执行按钮。

在这里设置要创建的文件夹。
如果没有特定要求,可以将其设置为默认设置。
此外,为了以防万一,可能最好将文件夹路径复制下来。
点击解冻按钮。
安装完成了。
如果Eclipse无法打开,请从文件夹中启动。

输入文件夹路径。

让我们在这里打开eclipse文件夹吧。

当您双击eclipse.exe文件时,将启动eclipse。
2. 如何使用eclipse
当Eclipse启动时,会跳转到以下图片。

点击启动。


选择「下一步」后,输入项目名称(本次为test),并创建。

请点击任意项目(此处为test文件夹),然后选择新建→类。

这里我们要决定Java文件的名字。
这一次,它将是test.java。
另外,请点击public static void main(String[] args)。

这样,Java文件就完成了。
您可以在右侧的编辑器中实际编写并执行程序。
总结
这次我们准备好了Java的执行环境。
在下一篇文章中,让我们开始实际编写代码吧。
感谢您的阅读。