!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

137 Members
29 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
3 Jul 2024
@vandycarlos:matrix.orgvandycarlos joined the room.19:37:33
4 Jul 2024
@philiptaron:matrix.orgPhilip Taron (UTC-8) left the room.15:46:11
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.15:52:32
5 Jul 2024
@wcohen:matrix.orgwcohen joined the room.13:26:42
6 Jul 2024
@devurandom:matrix.orgDennis joined the room.20:13:34
@devurandom:matrix.orgDennis Hi! In NixOS, is there a way to install multiple JDKs next to each other, and have the "default" (providing the java command) selected by programs.java, but still be able to point some programs (like gradle) to another JDK? 20:15:17
@devurandom:matrix.orgDennis *

Hi!

In NixOS, is there a way to install multiple JDKs next to each other, and have the "default" (providing the java command) selected by programs.java, but still be able to point some programs (like gradle) to another JDK?

I tried setting programs.java.enabled = true (which installs JDK 21) and environment.systemPackages = [jdk22] (to get JDK 22 in addition), but now my java --version reports v22, with apparently no way to make it point to v21.

20:18:43
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️To my knowledge, there unfortunately isn't a system to do this across a system environment20:23:29

Show newer messages


Back to Room ListRoom Version: 6