Sample application for Groupdocs.Viewer for Java gets java.lang.UnsatisfiedLinkError

hi there,

I got hold of your sample code at https://docs.groupdocs.com/viewer/java/how-to-view-word-documents-using-java/#rendering-to-html-with-embedded-resources-in-java

I put together a simple command line application from the sample code that you have shown in

I was able to build the application after adding the custom repository and dependency to the pom.xml file.
However, When I run the app using the command ( mvn spring-boot:run), I get the below error

PS. : I observe that the groupdocs library has generated 2 files page_1.html and page_2.html in the current directory.

I uploaded the sample application to github at : GitHub - anjanb/groupdocsviewerhello: a hello world for groupdocs viewer 4 java.

Question : How do I prevent the below Error from occuring ?
Question 2 : How can I get an evaluation license where all the pages of the document can be converted and no error messages are printed ?

Thank you.

=================================================

java.lang.UnsatisfiedLinkError: ‘java.util.Map com.groupdocs.viewer.internal.c.a.w.gk.readRegistryStringValues(int, java.lang.String)’
at com.groupdocs.viewer.internal.c.a.w.gk.readRegistryStringValues(Native Method)
at com.groupdocs.viewer.internal.c.a.w.internal.zzYR2.readRegistryStringValues(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzZLz.zzbj(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzZsm.zzKn(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzZsm.zzWzr(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.fz.getFontDataInternal(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzWPB.zzW1l(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzWPB.zzY2m(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzYlM.zzZFb(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzYlM.zzW6C(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzYlM.zzXmQ(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzYlM.zzWME(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzYlM.zzWbG(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzYlM.zzXGh(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.cI.zzXGh(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.EL.zzYpv(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.EL.zzX3S(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.aab.jU(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.jN$a.zz6g(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.internal.zzVSE.moveNext(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.jN.cF(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.jN.a(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.arY.mFY(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.arY.c(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.jN.Zn(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.jN.(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.anE.a(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.ark.mEz(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.ark.moveNext(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.ss.kGT(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.aj.jBe(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.aj.uf(Unknown Source)
at com.groupdocs.viewer.internal.c.a.w.aj.getPageCount(Unknown Source)
at com.groupdocs.viewer.domain.documents.D.cr(Unknown Source)
at com.groupdocs.viewer.domain.documents.j.getPageCount(Unknown Source)
at com.groupdocs.viewer.domain.e.b.a(Unknown Source)
at com.groupdocs.viewer.Viewer.view(Unknown Source)
at com.example.viewerhello.ViewerhelloApplication.embedded(ViewerhelloApplication.java:23)
at com.example.viewerhello.ViewerhelloApplication.main(ViewerhelloApplication.java:12)

==================

1 Like

@anjanbacchu

Welcome to GroupDocs forum!

This is a trial limitation, learn more at Licensing and Subscription, you can request a temporary license at Get a Temporary License to evaluate all the features.

While it does not affect rendering, there is no way to prevent this message from being printed to the console. This issue is going to be fixed in one of the future releases. The issue ID for reference is VIEWERJAVA-2753.