2022-05-30 18:33:33.862 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/tabula/", line 80, in _run
    result =
  File "/usr/local/lib/python3.9/", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/lib/python3.9/", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.9/", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'java'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/", line 354, in _run_script
    exec(code, module.__dict__)
  File "/app/trimestral/", line 28, in <module>
    tabelas12019 =, pages='1-2')
  File "/home/appuser/venv/lib/python3.9/site-packages/tabula/", line 322, in read_pdf
    output = _run(java_options, kwargs, path, encoding)
  File "/home/appuser/venv/lib/python3.9/site-packages/tabula/", line 91, in _run
    raise JavaNotFoundError(JAVA_NOT_FOUND_ERROR)
tabula.errors.JavaNotFoundError: `java` command is not found from this Python process.Please ensure Java is installed and PATH is set for `java`

Hi @Willer_Seno_Trambuch, welcome to the Streamlit community!

When deploying on Streamlit Cloud and need a system-level dependency such as Java, you need to create a packages.txt file:

If you don’t need anything special, you can put the line default-jre in your packages.txt file and that should give you what you need.