How to pass -Djava.awt.headless=true to Report.__init__ #174
Unanswered
massimiliano-della-rovere
asked this question in
Q&A
Replies: 1 comment
-
Please ignore this discussion. I created a pull request to solve this problem: #176 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in my code I have the following sequence:
and I get the following error:
NameError: Error fill report: Erro fill internal: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
On the reportjasperforum, one user suggested to call java with the following cli option:
-Djava.awt.headless=true
I temporarily modified
Report.__init__
inserting the headless option among thejpype.startJVM(...)
parameters, and it worked.How can I pass the headless option using the
Config
object?I tried something like this:
but it did not work, and returned me another error:
NameError: Error fill report: Unable to import 'java.util' without JVM
Beta Was this translation helpful? Give feedback.
All reactions