How to install java in NixOS?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












On NixOS, I am trying to install java in order to compile my code from the command line.



I do not see the java compiler listed anywhere in the list of available packages, queried by running nix-env -qaP '*' --description.



How do I install a java compiler on NixOS?







share|improve this question
















  • 3




    This page might help: nixos.org/nixos/packages.html it's a dynamic search page for NixOS' store.
    – Mioriin
    Nov 11 '17 at 4:50






  • 1




    Searching using a package name usually useless unless you know what you are looking for. Use package page mentioned above or add --description flag, for example, nix-env -qaP --description | grep -i java.*devel
    – wizzup
    Nov 11 '17 at 6:58















up vote
2
down vote

favorite












On NixOS, I am trying to install java in order to compile my code from the command line.



I do not see the java compiler listed anywhere in the list of available packages, queried by running nix-env -qaP '*' --description.



How do I install a java compiler on NixOS?







share|improve this question
















  • 3




    This page might help: nixos.org/nixos/packages.html it's a dynamic search page for NixOS' store.
    – Mioriin
    Nov 11 '17 at 4:50






  • 1




    Searching using a package name usually useless unless you know what you are looking for. Use package page mentioned above or add --description flag, for example, nix-env -qaP --description | grep -i java.*devel
    – wizzup
    Nov 11 '17 at 6:58













up vote
2
down vote

favorite









up vote
2
down vote

favorite











On NixOS, I am trying to install java in order to compile my code from the command line.



I do not see the java compiler listed anywhere in the list of available packages, queried by running nix-env -qaP '*' --description.



How do I install a java compiler on NixOS?







share|improve this question












On NixOS, I am trying to install java in order to compile my code from the command line.



I do not see the java compiler listed anywhere in the list of available packages, queried by running nix-env -qaP '*' --description.



How do I install a java compiler on NixOS?









share|improve this question











share|improve this question




share|improve this question










asked Nov 11 '17 at 0:55









mherzl

310215




310215







  • 3




    This page might help: nixos.org/nixos/packages.html it's a dynamic search page for NixOS' store.
    – Mioriin
    Nov 11 '17 at 4:50






  • 1




    Searching using a package name usually useless unless you know what you are looking for. Use package page mentioned above or add --description flag, for example, nix-env -qaP --description | grep -i java.*devel
    – wizzup
    Nov 11 '17 at 6:58













  • 3




    This page might help: nixos.org/nixos/packages.html it's a dynamic search page for NixOS' store.
    – Mioriin
    Nov 11 '17 at 4:50






  • 1




    Searching using a package name usually useless unless you know what you are looking for. Use package page mentioned above or add --description flag, for example, nix-env -qaP --description | grep -i java.*devel
    – wizzup
    Nov 11 '17 at 6:58








3




3




This page might help: nixos.org/nixos/packages.html it's a dynamic search page for NixOS' store.
– Mioriin
Nov 11 '17 at 4:50




This page might help: nixos.org/nixos/packages.html it's a dynamic search page for NixOS' store.
– Mioriin
Nov 11 '17 at 4:50




1




1




Searching using a package name usually useless unless you know what you are looking for. Use package page mentioned above or add --description flag, for example, nix-env -qaP --description | grep -i java.*devel
– wizzup
Nov 11 '17 at 6:58





Searching using a package name usually useless unless you know what you are looking for. Use package page mentioned above or add --description flag, for example, nix-env -qaP --description | grep -i java.*devel
– wizzup
Nov 11 '17 at 6:58











1 Answer
1






active

oldest

votes

















up vote
5
down vote



accepted










There are two Java compilers available via Nixpkgs: OpenJDK and OracleJDK, named openjdk and oraclejdk, respectively.



Note that the OracleJDK doesn't seem to be available in the top-level expression, but you can certainly install the openjdk.






share|improve this answer




















  • Thank you. I missed openjdk since I had been searching for java.
    – mherzl
    Nov 11 '17 at 6:24










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403846%2fhow-to-install-java-in-nixos%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










There are two Java compilers available via Nixpkgs: OpenJDK and OracleJDK, named openjdk and oraclejdk, respectively.



Note that the OracleJDK doesn't seem to be available in the top-level expression, but you can certainly install the openjdk.






share|improve this answer




















  • Thank you. I missed openjdk since I had been searching for java.
    – mherzl
    Nov 11 '17 at 6:24














up vote
5
down vote



accepted










There are two Java compilers available via Nixpkgs: OpenJDK and OracleJDK, named openjdk and oraclejdk, respectively.



Note that the OracleJDK doesn't seem to be available in the top-level expression, but you can certainly install the openjdk.






share|improve this answer




















  • Thank you. I missed openjdk since I had been searching for java.
    – mherzl
    Nov 11 '17 at 6:24












up vote
5
down vote



accepted







up vote
5
down vote



accepted






There are two Java compilers available via Nixpkgs: OpenJDK and OracleJDK, named openjdk and oraclejdk, respectively.



Note that the OracleJDK doesn't seem to be available in the top-level expression, but you can certainly install the openjdk.






share|improve this answer












There are two Java compilers available via Nixpkgs: OpenJDK and OracleJDK, named openjdk and oraclejdk, respectively.



Note that the OracleJDK doesn't seem to be available in the top-level expression, but you can certainly install the openjdk.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 11 '17 at 5:14









Emmanuel Rosa

2,4751410




2,4751410











  • Thank you. I missed openjdk since I had been searching for java.
    – mherzl
    Nov 11 '17 at 6:24
















  • Thank you. I missed openjdk since I had been searching for java.
    – mherzl
    Nov 11 '17 at 6:24















Thank you. I missed openjdk since I had been searching for java.
– mherzl
Nov 11 '17 at 6:24




Thank you. I missed openjdk since I had been searching for java.
– mherzl
Nov 11 '17 at 6:24

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403846%2fhow-to-install-java-in-nixos%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay