Jump to content

Using Oracle JDK instead of Open JDK: Difference between revisions

From Official NixOS Wiki
imported>Fadenb
m proper indentation of example
imported>Makefu
 
Line 1: Line 1:
Almost all Java packages in nixpkgs use Open JDK in form of a '''jre''' dependency. If you use Oracle JDK and also want other applications to use it, you can simply tweak your <code>.nixpkgs/config.nix</code> so that your desired application uses Oracles JDK or JRE.
#REDIRECT [[Java#Using_Oracle_JDK_instead_of_Open_JDK]]
 
Example with UMLet with JRE 8:
<syntaxhighlight lang="nix">
{
  allowUnfree = true;
  packageOverrides = pkgs: rec {
    umlet = pkgs.umlet.override {
      jre = pkgs.oraclejre8;
    };
  };
}
</syntaxhighlight>

Latest revision as of 12:01, 19 March 2018