Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf generation: exception ClassNotFound #7

Open
francescodisciascio opened this issue Jan 23, 2014 · 3 comments
Open

pdf generation: exception ClassNotFound #7

francescodisciascio opened this issue Jan 23, 2014 · 3 comments
Assignees

Comments

@francescodisciascio
Copy link

When I generate a pdf in Grails with PDF plugin, I have the following exception:
there was a problem with PDF generation java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager
Why I have this exception?
Notice that, if I run the Grails application in another machine, everything works.
May it depend on Java version? In the working machine it is 1.7.0_17, in the not working machine it is 1.7.0_45.

@aeischeid
Copy link
Owner

I really don't know the answer I haven't been near this code for a couple years now, but I would suspect that it could possibly be related to the version of JDK that you are using. Maybe even openJDK vs oracleJDK.

@francescodisciascio
Copy link
Author

Which are the versions of oracleJDK that you are sure that works with this plugin?
Someone suggested me to use Java in headless mode, but I'm using in both cases Ubuntu with UI, so maybe there is some differences in Java versions...how can I check it?
Someone asked me also: Which PDF framework stands beside grail plugin? Can you give me an answer?

@aeischeid
Copy link
Owner

well, like I said it has been some time since I used it, but last I knew both the openJDK and sun/oracleJDK in the 1.6 line worked.

@aeischeid aeischeid self-assigned this Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants