面向對象編程(中級) 筆記目錄:(https://www.cnblogs.com/wenjie2000/p/16378441.html) lntelliJ IDEA ●IDEA介紹(內容僅需瞭解) IDEA全稱Intelli IDEA 在業界被公認為最好的Java開發工具 IDEA是JetBrain ...
轉自:
http://www.java265.com/JavaCourse/202201/2242.html
JDK的功能:
JDK是 Java 語言的軟體開發工具包,主要用於移動設備、嵌入式設備上的java應用程式。JDK是整個java開發的核心,它包含了JAVA的運行環境(JVM+Java系統類庫)和JAVA工具。
JDK(Java Development Kit) 是 Java 語言的軟體開發工具包(SDK)。
SE(JavaSE),standard edition,標準版,是我們通常用的一個版本,從JDK 5.0開始,改名為Java SE。
EE(JavaEE),enterprise edition,企業版,使用這種JDK開發J2EE應用程式,從JDK 5.0開始,改名為Java EE。從2018年2月26日開始,J2EE改名為Jakarta EE [1] 。
ME(J2ME),micro edition,主要用於移動設備、嵌入式設備上的java應用程式,從JDK 5.0開始,改名為Java ME。
沒有JDK的話,無法編譯Java程式(指java源碼.java文件),如果想只運行Java程式(指class或jar或其它歸檔文件),要確保已安裝相應的JRE。
傻瓜安裝方式分享
步驟一:獲取java版本
[root@localhost opt]# yum -y list java* 已載入插件:fastestmirror Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast Determining fastest mirrors * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.dgut.edu.cn 可安裝的軟體包 java-1.6.0-openjdk.x86_64 1:1.6.0.41-1.13.13.1.el7_3 base java-1.6.0-openjdk-demo.x86_64 1:1.6.0.41-1.13.13.1.el7_3 base java-1.6.0-openjdk-devel.x86_64 1:1.6.0.41-1.13.13.1.el7_3 base java-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.41-1.13.13.1.el7_3 base java-1.6.0-openjdk-src.x86_64 1:1.6.0.41-1.13.13.1.el7_3 base java-1.7.0-openjdk.x86_64 1:1.7.0.261-2.6.22.2.el7_8 base java-1.7.0-openjdk-accessibility.x86_64 1:1.7.0.261-2.6.22.2.el7_8 base java-1.7.0-openjdk-demo.x86_64 1:1.7.0.261-2.6.22.2.el7_8 base java-1.7.0-openjdk-devel.x86_64 1:1.7.0.261-2.6.22.2.el7_8 base java-1.7.0-openjdk-headless.x86_64 1:1.7.0.261-2.6.22.2.el7_8 base java-1.7.0-openjdk-javadoc.noarch 1:1.7.0.261-2.6.22.2.el7_8 base java-1.7.0-openjdk-src.x86_64 1:1.7.0.261-2.6.22.2.el7_8 base java-1.8.0-openjdk.i686 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk.x86_64 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-accessibility.i686 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-accessibility.x86_64 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-demo.i686 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-demo.x86_64 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-devel.i686 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-devel.x86_64 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-headless.i686 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-headless.x86_64 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-javadoc.noarch 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-javadoc-zip.noarch 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-src.i686 1:1.8.0.312.b07-1.el7_9 updates java-1.8.0-openjdk-src.x86_64 1:1.8.0.312.b07-1.el7_9 updates java-11-openjdk.i686 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk.x86_64 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-demo.i686 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-demo.x86_64 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-devel.i686 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-devel.x86_64 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-headless.i686 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-headless.x86_64 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-javadoc.i686 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-javadoc.x86_64 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-javadoc-zip.i686 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-javadoc-zip.x86_64 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-jmods.i686 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-jmods.x86_64 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-src.i686 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-src.x86_64 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-static-libs.i686 1:11.0.13.0.8-1.el7_9 updates java-11-openjdk-static-libs.x86_64 1:11.0.13.0.8-1.el7_9 updates java-atk-wrapper.i686 0.30.4-5.el7 base java-atk-wrapper.x86_64 0.30.4-5.el7 base java_cup.noarch 1:0.11a-16.el7 base java_cup-javadoc.noarch 1:0.11a-16.el7 base java_cup-manual.noarch 1:0.11a-16.el7 base javacc.noarch 5.0-10.el7 base javacc-demo.noarch 5.0-10.el7 base javacc-javadoc.noarch 5.0-10.el7 base javacc-manual.noarch 5.0-10.el7 base javacc-maven-plugin.noarch 2.6-17.el7 base javacc-maven-plugin-javadoc.noarch 2.6-17.el7 base javamail.noarch 1.4.6-8.el7 base javamail-javadoc.noarch 1.4.6-8.el7 base javapackages-tools.noarch 3.4.1-11.el7 base javassist.noarch 3.16.1-10.el7 base javassist-javadoc.noarch 3.16.1-10.el7 base [root@localhost opt]#
選擇指定的java版本進行安裝
[root@localhost opt]# yum install -y java-1.8.0-openjdk-devel.x86_64 已載入插件:fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.dgut.edu.cn base
使用以上兩種方式,即可實現傻瓜的linux jdk安裝