Adding Java in Pyinstaller Exe for Tabula

62 Views Asked by At

I built a python program using Tabula to read tables in pdf. I am trying to pack it into an exe and send it to others to use it, I have added the tabula jar file using --add-data. But it doesn't work because the client does not have Java installed on his laptop. I do not want him to install Java, is it possible to do it?

1

There are 1 best solutions below

0
On

You could try Launch4j to create an executable for tabula and embed the JRE so users don't need to download Java.

There is also this article that describes the steps to create and embbed Java into a Windows executable.

This SO post 'How can I convert a .jar to an .exe?' also gives more alternatives to that task.