Skip to content

Java not found on NixOS #77

@pishleback

Description

@pishleback

Trying to install FAF on NixOS.

I've followed all the installation steps up to running ./run, which outputs:

No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be at least 21.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

The steam part of my configuration.nix looks like

  programs.steam = {
    enable = true;

    remotePlay.openFirewall = true;
    dedicatedServer.openFirewall = true;

    package = with pkgs; steam.override {
      extraPkgs = pkgs: [
        jq
        cabextract
        wget
        git
        pkgsi686Linux.libpulseaudio
        pkgsi686Linux.freetype
        pkgsi686Linux.xorg.libXcursor
        pkgsi686Linux.xorg.libXcomposite
        pkgsi686Linux.xorg.libXi
      ];
    };
  };

When running setup.sh I can see java.tar.gz being downloaded and extracted, and there is a jdk-21.0.5+11 folder inside the faf-linux folder. I've also tried installing java system-wide (verified with java -version) but java is still not found by ./run.

I've tried running ./update-component.sh java "<java url>" with the latest <java url> as in the main readme, but that does not fix it.

Running all commands inside steam-run bash.

Any ideas? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions