Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

搭建Java程序设计环境 #23

Open
yankewei opened this issue Apr 26, 2020 · 0 comments
Open

搭建Java程序设计环境 #23

yankewei opened this issue Apr 26, 2020 · 0 comments
Labels
Java 有关 Java 语言的

Comments

@yankewei
Copy link
Owner

yankewei commented Apr 26, 2020

本文中开发环境都以MacOS为准

  1. 下载JDK
    JDK是Java Development Kit的缩写。
    还有另一个常见的术语叫JRE,它是Java Runtime Environment的缩写,包含虚拟机但不包含编译器,这并不是我们开发者想要的环境,而是专门为不需要编译器的用户提供的。所以我们只需要下载JDK即可。
    https://www.oracle.com/cn/java/technologies/javase-downloads.html网站上下载JDK。
  2. 设置JDK
    安装完之后,MacOS会安装到/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home这个目录下,会自动设置环境变量,如果有的环境是Linux的,可以自己设置一下环境变量。
    设置完之后,执行java -version,看到类似如下的内容,表示设置成功。
java version "14.0.1" 2020-04-14
Java(TM) SE Runtime Environment (build 14.0.1+7)
Java HotSpot(TM) 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)
@yankewei yankewei added the Java 有关 Java 语言的 label Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java 有关 Java 语言的
Projects
None yet
Development

No branches or pull requests

1 participant