Error when building FOP svn 1800269 - cannot find symbol symbol getNameForGID(int)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error when building FOP svn 1800269 - cannot find symbol symbol getNameForGID(int)

John Brown
john@john-pc /c/downloads/fop-svn/fop
$ ant
Buildfile: c:\downloads\fop-svn\fop\build.xml
Trying to override old definition of task javac
Trying to override old definition of task junit

init-avail:
     [echo] ------------------- Apache FOP 2.3.0-SNAPSHOT [1999-2017] ----------------
     [echo] See build.properties and build-local.properties for additional build settings
     [echo] Apache Ant(TM) version 1.9.6 compiled on June 29 2015
     [echo] VM: 25.112-b15, Oracle Corporation
     [echo] JAVA_HOME: c:/progra~1/java/jdk1.8.0_112
     [echo] JAI Support NOT Present
     [echo] JCE Support PRESENT
     [echo] JUnit Support NOT Present - Committers are required to have JUnit working
     [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sourceforge.net

init:

codegen:
     [echo] Generating the java files from xml resources
     [xslt] Transforming into c:\downloads\fop-svn\fop\build\gensrc\org\apache\fop\fonts\base14

compile-java:
    [javac] Compiling 211 source files to c:\downloads\fop-svn\fop\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1FontFormatter.java:115: error: cannot find symbol
    [javac]             String name = font.getCharset().getNameForGID(gid.getKey());
    [javac]                                            ^
    [javac]   symbol:   method getNameForGID(Integer)
    [javac]   location: class CFFCharset
    [javac] c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1FontFormatter.java:160: error: cannot find symbol
    [javac]             String mapping = font.getCharset().getNameForGID(gid);
    [javac]                                               ^
    [javac]   symbol:   method getNameForGID(int)
    [javac]   location: class CFFCharset
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
    [javac] 1 warning

BUILD FAILED
c:\downloads\fop-svn\fop\build.xml:351: Compile failed; see the compiler error output for details.

Total time: 11 seconds

john@john-pc /c/downloads/fop-svn/fop
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Error when building FOP svn 1800269 - cannot find symbol symbol getNameForGID(int)

Simon Steiner
Hi,

Maybe you have an old fontbox jar on your classpath?

Thanks

-----Original Message-----
From: John Brown [mailto:[hidden email]]
Sent: 29 June 2017 13:38
To: [hidden email]
Subject: Error when building FOP svn 1800269 - cannot find symbol symbol
getNameForGID(int)

john@john-pc /c/downloads/fop-svn/fop
$ ant
Buildfile: c:\downloads\fop-svn\fop\build.xml
Trying to override old definition of task javac Trying to override old
definition of task junit

init-avail:
     [echo] ------------------- Apache FOP 2.3.0-SNAPSHOT [1999-2017]
----------------
     [echo] See build.properties and build-local.properties for additional
build settings
     [echo] Apache Ant(TM) version 1.9.6 compiled on June 29 2015
     [echo] VM: 25.112-b15, Oracle Corporation
     [echo] JAVA_HOME: c:/progra~1/java/jdk1.8.0_112
     [echo] JAI Support NOT Present
     [echo] JCE Support PRESENT
     [echo] JUnit Support NOT Present - Committers are required to have
JUnit working
     [echo] XMLUnit Support NOT Present - you can get it from
http://xmlunit.sourceforge.net

init:

codegen:
     [echo] Generating the java files from xml resources
     [xslt] Transforming into
c:\downloads\fop-svn\fop\build\gensrc\org\apache\fop\fonts\base14

compile-java:
    [javac] Compiling 211 source files to
c:\downloads\fop-svn\fop\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.6
    [javac]
c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1Fo
ntFormatter.java:115: error: cannot find symbol
    [javac]             String name =
font.getCharset().getNameForGID(gid.getKey());
    [javac]                                            ^
    [javac]   symbol:   method getNameForGID(Integer)
    [javac]   location: class CFFCharset
    [javac]
c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1Fo
ntFormatter.java:160: error: cannot find symbol
    [javac]             String mapping =
font.getCharset().getNameForGID(gid);
    [javac]                                               ^
    [javac]   symbol:   method getNameForGID(int)
    [javac]   location: class CFFCharset
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
    [javac] 1 warning

BUILD FAILED
c:\downloads\fop-svn\fop\build.xml:351: Compile failed; see the compiler
error output for details.

Total time: 11 seconds

john@john-pc /c/downloads/fop-svn/fop
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error when building FOP svn 1800269 - cannot find symbol symbol getNameForGID(int)

John Brown


On Thursday, June 29, 2017 8:49 AM, Simon Stener wrote:
>
> Hi,
>
> Maybe you have an old fontbox jar on your classpath?

Yes, that was it. I had fontbox-1.3.1.jar in fop-svn\fop\lib as well as fontbox-2.0.4.

Regards,
John Brown.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...