How can i install Java runtime environment (JRE)

Hi, I have a node app which requires Java runtime environment (JRE). How can i set JRE? thanks
Solution:
try adding a nixpacks.toml with this in it
[phases.setup]
nixPkgs = ['...', 'jre8']
[phases.setup]
nixPkgs = ['...', 'jre8']
...
Jump to solution
9 Replies
Percy
Percy12mo ago
Project ID: N/A
mshahzaib101ed
mshahzaib101edOP12mo ago
N/A
Brody
Brody12mo ago
https://nixpacks.com/docs/providers/java
Java is detected if a pom.[xml|atom|clj|groovy|rb|scala|yaml|yml] or gradlew file is found.
mshahzaib101ed
mshahzaib101edOP12mo ago
will an empty pom.xml file will enable the java?
Brody
Brody12mo ago
if you have a java project you should have one of those files already?
mshahzaib101ed
mshahzaib101edOP12mo ago
i have a node js project. It has a package which requires JRE
Solution
Brody
Brody12mo ago
try adding a nixpacks.toml with this in it
[phases.setup]
nixPkgs = ['...', 'jre8']
[phases.setup]
nixPkgs = ['...', 'jre8']
mshahzaib101ed
mshahzaib101edOP12mo ago
Thanks alot , it is working now👍 salute
Brody
Brody12mo ago
awsome!
Want results from more Discord servers?
Add your server