1

在尝试使用以下命令在我的计算机上本地创建条形码时:barcode4j-fop-ext-complete.jar, ..\fop-2.5-bin\fop-2.5\fop\fop.bat -c config1.xml -xml 6314587.xml -xsl stylesheet.xsl output.pdf我收到此错误:

Exception in thread "main" java.lang.IncompatibleClassChangeError: class 
org.krysalis.barcode4j.fop0205.BarcodeElementMapping can not implement 
org.apache.fop.fo.ElementMapping, 
because it is not an interface (org.apache.fop.fo.ElementMapping is in unnamed module of loader 'app')

有没有人遇到过这个问题?我该如何解决?

样式表我有条码实现如下:

                        <fo:block-container>
                            <fo:block>
                                <fo:block>
                                    <fo:instream-foreign-object>
                                        <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" message="123" orientation="90">
                                            <barcode:code128>
                                                <barcode:height>8mm</barcode:height>
                                            </barcode:code128>
                                        </barcode:barcode>
                                    </fo:instream-foreign-object>
                                </fo:block>
                            </fo:block>
                        </fo:block-container>
4

0 回答 0