pyreportjasper icon indicating copy to clipboard operation
pyreportjasper copied to clipboard

NameError: Error fill report: Erro fill internal: java.lang.ClassNotFoundException: org.h2.Driver

Open VolkerHeun opened this issue 2 years ago • 1 comments

Can you verify, that h2 Database is supported for report creation?

I use the following configuration:

` path = os.path.dirname(os.path.abspath(file))

connection={'driver':'generic', 'jdbc_driver':'org.h2.Driver', 'jdbc_url':'jdbc:h2:'+path+'/datawarehouse', 'jdbc_dir':path+'/lib/'} `

and get the error message above.

grafik

That's the structure of the files and libraries.

I hope you can help me.

VolkerHeun avatar Jan 27 '23 10:01 VolkerHeun

The H2 Database is indeed supported. What error is being generated? Could you share the code? Would it be possible to print the path being passed as a parameter to jdbc_dir and let us know?

jadsonbr avatar Dec 29 '23 11:12 jadsonbr