Java 11 Download Mac

2020年12月2日
Download: http://gg.gg/nci0t
*Jdk 11 Mac
*Java For Mac Os
Download Java SE 8 Environment 8 1.8.11.12 for Mac. Fast downloads of the latest free software! Download the latest version of Java SE Development Kit 11 for Mac - Java development kit from Oracle (JDK). Read 3 user reviews of Java SE Development Kit 11 on MacUpdate.
This article shows you how to install Java on Mac OSX, and also how to do Java/JDK version switching.
Tested with
*Mac OS 10.15.3
*JDK 8, 9, 10, 11, 12, 13 (AdoptOpenJDK)
Note On Mac OSX, Java should installed in this folder; it is Mac’s standard.
We will show you two ways to install Java JDK on Mac, via the popular Homebrew package manager and manually installation.1. Homebrew
1.1 Install Homebrew and update it.
1.2 Add adoptopenjdk/openjdk.
1.3 Find all available JDK.
The output may vary.
1.4 Java 8, 9, 10, 11, 12, 13, choose one to install.
This example will install Java 8 and 11 for testing.
1.5 Where Java is installed? /usr/libexec/java_home -V
Homebrew will install the JDK at folder /Library/Java/JavaVirtualMachines/, and this folder is Mac’s standard folder for Java installs.
1.6 Test it, by default, Mac takes the highest version.
1.7 How to do version switching? Refer to below 3. version switching2. Manual installation
The example shows you how to download the early access JDK 14 and install it on Mac OSX.
Steps
*Download JDK.
*Puts the JDK folder at /Library/Java/JavaVirtualMachines.
*Export JAVA_HOME.
2.1 Download the early access JDK 14 from the OpenJDK website.
2.2 Extracts tar file to /Library/Java/JavaVirtualMachines
2.3 Export JAVA_HOME.
Find out where is JDK 14.
Create or edit the existing ~/.bash_profile with a text editor.
Export JAVA_HOME, save and exit.~/.bash_profile
Reflect the changes
2.4 Test it.3. Version Switching
In this tutorial, we installed the Java 8 and Java 11 via Homebrew (Step 1), and Java 14 manually (Step 2), so this Mac has three versions now. And the Mac is using the JDK 14.
Note There are tools like jEnv to manage the Java version switching, but I prefer to manage with export JAVA_HOME manually, it’s simple and easy to understand, no black box magic.
3.1 Create or edit the existing ~/.bash_profile with a text editor like vim or nano, export JAVA_HOME to the specified JDK we want to use on Mac.
The above changes will make JAVA_HOME point to JAVA 8.
3.2 Reflect the changes.
Done.
If we want to switch JDK version again, update the ~/.bash_profile and export JAVA_HOME to other JDK version.ReferencesTags : beginnerinstall jdkinstall-javamacRelated ArticlesmkyongFounder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.DetailsWritten by Nam Ha Minh Last Updated on 23 September 2020 | Print EmailIn this post, I will guide you to setup Java 11 on Windows operating system by downloading and installing Java Development Kit (JDK) version 11 from Oracle. You know, Oracle released Java 11 builds under two different licenses: Oracle JDK (commercial build with Oracle Technology Network license) and OpenJDK (open source build with GNU General Public license).1. Download and Install Oracle JDK 11Oracle JDK 11 is the first LTS (Long Term Support) Java Development Kit since Oracle changed Java release cadence to every 6 months. According to Oracle, JDK 11 will be supported (commercial support) until September 2026.Head to Java SE Development Kit 11 Downloads page and choose the download file appropriate to your operating system. Oracle JDK 11 comes with installers for Linux (rpm and deb), macOS (dmg), Windows (exe) and archive files (tar.gz and zip).For Windows, I recommend to download the file jdk-11.0.7_windows-x64_bin.exe. Note that you must have an Oracle account to be able to download JDK 11 installer. If not, creating one is free.Run the downloaded file, and you will see the JDK 11 setup program appears:Just click Next twice to proceed installation with the defaults.Note that Oracle JDK 11 does not update system environment variables, so you have to manually update PATH and/or JAVA_HOME after installation. Open Command Prompt window under administrator privilege and type the following command:
setx -m JAVA_HOME ’C:Program FilesJavajdk-11.0.7’ If the PATH environment variable does not contain an entry to JAVA_HOMEbin, type the following command:
setx -m PATH ’%JAVA_HOME%bin;%PATH%’ Then open another command prompt window and type java –version, you will see:That means you have successfully installed and configured Oracle JDK 11 on your computer.You can also watch the video below:2. Download and Install OpenJDK 11OpenJDK 11 is the open source distribution of JDK 11, licensed under GNU General Public License version 2 (GPLv2).To download OpenJDK 11, you have to go to OpenJDK Archive download page. Then scroll down a little bit to find the version 11.0.2. OpenJDK is distributed in only zip or tar.gz file. For Windows, download the zip file for Windows 64-bit, i.e. openjdk-11.0.2_windows-x64_bin.zip file.Extract the downloaded zip file to a directory. Then type the following command to update JAVA_HOME (in Command Prompt with administrator right):
setx -m JAVA_HOME ’g:JDKOpenJDKjdk-11.0.2’Then open another command prompt and type Jdk 11 Macjava –version, you will see:That means you have successfully setup OpenJDK 11 on your computer.You can also watch the video below:Related Tutorials:Java For Mac OsAbout the Author:Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on Facebook and watch his Java videos you YouTube.
Download: http://gg.gg/nci0t

コメント

お気に入り日記の更新

テーマ別日記一覧

まだテーマがありません

この日記について

日記内を検索