sqlparser / python_data_lineage

Data lineage tools in python
24 stars 5 forks source link

java.lang.java.lang.NoClassDefFoundError #3

Open kaonick opened 3 months ago

kaonick commented 3 months ago

I try "python dlineage.py /t oracle /f test.sql /graph" then got error below:

result = dlineage.generateDataFlow() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ java.lang.java.lang.NoClassDefFoundError: <exception str() failed>

liaowuhen2 commented 3 months ago

JDK 1.8, Python 3.12.1, JPype 1.5.0. You can try testing with this version combination

Hamed0406 commented 3 months ago

it is good to check this steps as well :

Check Classpath: Verify the classpath in your environment by running echo $CLASSPATH in the terminal (Linux/Mac) or echo %CLASSPATH% (Windows) and ensure that it includes all necessary JAR files.

Check Dependencies: Make sure that all dependencies required by dlineage.py are correctly installed and accessible.

Run a Simple Java Test: Write a simple Java program to check if your Java environment is correctly set up and can load classes from the required JARs.

Verbose Logging: If possible, enable verbose logging or debugging options in the script or Java command to get more details about what is causing the NoClassDefFoundError.