acesseonline / pyreportjasper

Python Reporting with JasperReports
https://pyreportjasper.readthedocs.io/en/latest/
GNU General Public License v3.0
126 stars 72 forks source link

Error in Jpype #127

Closed aachiary closed 9 months ago

aachiary commented 2 years ago

Hi, I'm having trouble to compile a JSON based report after getting an .exe of my application with cx_Freeze. When I use it with python command there is no problem. The error I get is:

Traceback (most recent call last): File "C:\Users\Andy\AppData\Local\Programs\Python\Python39\Lib\site-packages\cx_Freeze\initscripts__startup__.py", line 120, in run module_init.run(name + "main") File "C:\Users\Andy\AppData\Local\Programs\Python\Python39\Lib\site-packages\cx_Freeze\initscripts\Console.py", line 16, in run exec(code, module_main.dict) File "aprobar_factura.py", line 25, in File "D:\Python-proj\loffreda-service\factura.py", line 108, in imprimir pyreportjasper.compile(write_jasper=True) File "C:\Users\Andy\AppData\Local\Programs\Python\Python39\lib\site-packages\pyreportjasper\pyreportjasper.py", line 130, in compile raise error NameError: Error compile file: java.lang.ClassNotFoundException: org.jpype.classloader.DynamicClassLoader

I got it with JPype 1.3 and 1.4 Thanks!

jadsonbr commented 1 year ago

pyreportjasper has not been tested to run on standalone Python script executables. Try to check the cx_Freeze limitations with JPype and also try to check if the library jars are going along.

jadsonbr commented 9 months ago

Closed due to lack of interaction