You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Mathieu Malaterre (Jira)" <ji...@apache.org> on 2020/03/05 13:03:00 UTC

[jira] [Commented] (FOP-2916) Error: Could not find or load main class org.apache.fop.hyphenation.SerializeHyphPattern

    [ https://issues.apache.org/jira/browse/FOP-2916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17052113#comment-17052113 ] 

Mathieu Malaterre commented on FOP-2916:
----------------------------------------

The error message does not make any sense to me since:

{code}
$ jar xvf /usr/share/java/fop.jar | grep SerializeHyphPattern
 inflated: org/apache/fop/hyphenation/SerializeHyphPattern$1.class
 inflated: org/apache/fop/hyphenation/SerializeHyphPattern.class
{code}

> Error: Could not find or load main class org.apache.fop.hyphenation.SerializeHyphPattern
> ----------------------------------------------------------------------------------------
>
>                 Key: FOP-2916
>                 URL: https://issues.apache.org/jira/browse/FOP-2916
>             Project: FOP
>          Issue Type: Bug
>            Reporter: Mathieu Malaterre
>            Priority: Major
>
> This is getting more and more complex to build fop-hyph.
> Here is the compilation log:
> {code}
> mkdir -p fop/lib/build
> # While the README mention those are deprecated build instructions it
> # seems those targets have not been moved to the new maven build system
> ant -f fop/build.xml -lib /usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-io.jar:/usr/share/java/batik-libs.jar:/usr/share/java/xml-apis-ext.jar:/usr/share/java/fontbox2.jar:/usr/share/java/servlet-api-3.1.jar:/usr/share/java/fop.jar jar-hyphenation
> Buildfile: /mnt/bdc64c37-340a-49e5-8184-a69e01e5e231/mathieu/debian/fop/fop/build.xml
> Trying to override old definition of task javac
> Trying to override old definition of task junit
> compile-hyphenation:
>     [mkdir] Created dir: /mnt/bdc64c37-340a-49e5-8184-a69e01e5e231/mathieu/debian/fop/fop/build/classes/hyph
>      [java] Error: Could not find or load main class org.apache.fop.hyphenation.SerializeHyphPattern
>      [java] Caused by: java.lang.ClassNotFoundException: org.apache.fop.hyphenation.SerializeHyphPattern
>      [java] Java Result: 1
>      [echo] Hyphenation failed
> uptodate-jar-hyphenation:
> jar-hyphenation:
>       [jar] Building MANIFEST-only jar: /mnt/bdc64c37-340a-49e5-8184-a69e01e5e231/mathieu/debian/fop/fop/build/fop-hyph.jar
> BUILD SUCCESSFUL
> Total time: 0 seconds
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)