This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Java Not Found Error in Python Operation

We wanted to extract data in table format from PDF with Python Tabula. We installed all the required dependencies and packages for Tabula, installed JDK 1.8 and updated environment variable. However, when we debug the python operation and we got Java not found error.

  • 0  

    Can you please share the operation you created and also the error?

  • 0 in reply to   

    Hi Daniel,

    Here is the sample code for the python operation:

    and the error during debug

  • 0   in reply to 

    I had the same with tabula-py.

    Although I am an OpenText employee, I am speaking for myself and not for OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0   in reply to   

    Looks like you don't have the JAVA set in the PATH env variable. Tabula needs java to run, so you need to add the java path in the PATH env variable.

  • 0   in reply to   

    I did try that and it works when running python and tabula outside Web Designer e.g. on OO server. However when you write the operation in Designer and run it in Debugger the issues persists.

    Although I am an OpenText employee, I am speaking for myself and not for OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0 in reply to 

    I have already added JAVA to PATH env variable. Just like what Kumitikka has explained, I have no issue on running the python code on command prompt but when execute the flow in Debugger it will get the Java not found error.

  • 0   in reply to 

    I did some more testing on tabula-py: I installed Designer on a Linux box and got it working on that system, required some extra tweaking though. 

    Although I am an OpenText employee, I am speaking for myself and not for OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button