FileNotFoundError: [Errno 2] No such file or directory: 'java'

I have already added default-jre in the package.txt file but I’m still getting this error. kindly help me resolve this.

Hi @n33tus,

Thanks for posting!

Can you change your “package.txt” file to “requirements.txt” and reboot the app?

Caroline :balloon:

I have changed name to requirement.txt, but error still persists.
streamlit is unable to run java under subprocess .

It would be helpful if you posted your repo @n33tus.

Installing java is indeed through the packages.txt file, not requirements.txt. But without seeing the code, I can’t give you any specific recommendations about what might be wrong.

Best,
Randy

Make sure to try with the file being named packages.txt and not package.txt

i got my problem resolved. thank you so much for your support