Java: Difference between revisions
imported>Mic92 remove out-of-place sentence |
imported>Nornagon Add more information about the various flavors of Java |
||
| Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
== JDK options == | |||
Your default choice should probably be to install <code>jdk11</code>, which is an alias for <code>openjdk11</code>. If you're in a server environment, go for <code>jdk11_headless</code>. Java 11 is the currently-maintained LTS version of OpenJDK as of Oct 2019. | |||
As you might expect, though, many flavors of Java are available in NixOS. | |||
* OpenJDK, by far the most popular non-Oracle JVM implementation | |||
** <code>openjdk8[_headless]</code> for a legacy Java 8 VM required by some older apps | |||
** <code>openjdk11[_headless]</code>, the currently-supported LTS version of OpenJDK | |||
** <code>openjdk12[_headless]</code>, the current version of OpenJDK | |||
* AdoptOpenJDK, prebuilt binaries for OpenJDK | |||
** <code>adoptopenjdk-bin</code> points to the latest version of AdoptOpenJDK, which is version 11 at the time of writing. | |||
** <code>adoptopenjdk-jre-bin</code> is available if you want to avoid downloading the compiler and only require the runtime environment. | |||
* JetBrains JDK (<code>jetbrains.jdk</code>), a fork of OpenJDK with modifications made by JetBrains | |||
* Oracle's JDK (<code>oraclejdk</code>), only version 8 is available. | |||
== Using Oracle JDK instead of Open JDK == | == Using Oracle JDK instead of Open JDK == | ||