Install Java in Python env repl

I want to create a python app but I need java to run apache kafka. I tried downloading the java tar file manually but I think my storage went over.

For clarification: I want to be able to do “java -version” and I’m not sure what the equivalent of “sudo yum install java-1.8.0-openjdk” is on replit.

Replit uses nix as it’s package manager, and sudo will never work as it is a security risk. Try adding pkgs.graalvm17-ce to your replit.nix file.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.