How to build documents for java from source code

Posted by: anthony.adewumi on 3 April 2020, 9:55 pm EST

  • Posted 3 April 2020, 9:55 pm EST

    Hi,

    I'm looking for information on how to build documents for java from source code which I purchased. There is only bunch of directories modules and no standarized maven configuration to run in order to build a jar, Javadoc jar nor source code jar for debug purposes.

    Please advice what is your way of building this project or share maven configuration for the source code.
  • Replied 4 April 2020, 1:34 am EST

    I found a readme.txt file saying:

    1.To build gcexcel.jar
    Ensure JAVA_HOME is set in your system
    Switch to Source\SpreadServices4J folder
    Execute 'ant build' command, and gcexcel.jar will be output to Source\SpreadServices4J\build folder


    This is my environment configuration:
    java version "1.6.0_65"
    Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468)
    Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)

    Apache Ant(TM) version 1.9.14 compiled on March 12 2019
    Ant opts: -Xmx4096m -XX:MaxPermSize=2048m


    When I run the build command
    ant build
    I get an enormous amount of errors listing classes and interfaces not available in delivered sources version 3.1.0. Please look at the attached document with logs.

    Here are some of them:

        [javac] /Users/softpro/devel/workspaces/gcexcel-3.1.0-source-java/Model.Style/src/com/grapecity/documents/excel/style/NumberFormatData.java:31: cannot find symbol
    [javac] symbol : class INumberFormatManager
    [javac] location: class com.grapecity.documents.excel.style.NumberFormatData
    [javac] public DoubleTypeCode GetDoubleTypeCode(INumberFormatManager numberFormatManager,
    [javac] ^
    [javac] /Users/softpro/devel/workspaces/gcexcel-3.1.0-source-java/Model.Style/src/com/grapecity/documents/excel/style/NumberFormatData.java:31: cannot find symbol
    [javac] symbol : class DoubleTypeCode
    [javac] location: class com.grapecity.documents.excel.style.NumberFormatData
    [javac] public DoubleTypeCode GetDoubleTypeCode(INumberFormatManager numberFormatManager,
    [javac] ^
    [javac] /Users/softpro/devel/workspaces/gcexcel-3.1.0-source-java/Model.Style/src/com/grapecity/documents/excel/style/StyleStorage.java:31: cannot find symbol
    [javac] symbol : class IFormatter
    [javac] location: package com.grapecity.documents.excel.style.format
    [javac] import com.grapecity.documents.excel.style.format.IFormatter;
    [javac] ^
    [javac] /Users/softpro/devel/workspaces/gcexcel-3.1.0-source-java/Model.Style/src/com/grapecity/documents/excel/style/StyleStorage.java:32: cannot find symbol
    [javac] symbol : class INumberFormatManager
    [javac] location: package com.grapecity.documents.excel.style.format
    [javac] import com.grapecity.documents.excel.style.format.INumberFormatManager;
    [javac] ^
    [javac] /Users/softpro/devel/workspaces/gcexcel-3.1.0-source-java/Model.Style/src/com/grapecity/documents/excel/style/StyleStorage.java:33: cannot find symbol
    [javac] symbol : class NumberFormatManager
    [javac] location: package com.grapecity.documents.excel.style.format
    [javac] import com.grapecity.documents.excel.style.format.NumberFormatManager;
    [javac] ^
    [javac] /Users/softpro/devel/workspaces/gcexcel-3.1.0-source-java/Model.Style/src/com/grapecity/documents/excel/style/StyleManagerForWorkbook.java:22: cannot find symbol
    [javac] symbol : class NumberFormatManager
    [javac] location: package com.grapecity.documents.excel.style.format
    [javac] import com.grapecity.documents.excel.style.format.NumberFormatManager;
    [javac] ^
    [javac] /Users/softpro/devel/workspaces/gcexcel-3.1.0-source-java/Model.Style/src/com/grapecity/documents/excel/style/StyleManagerForWorksheet.java:70: cannot find symbol
    [javac] symbol : class NumberFormatManager
    [javac] location: class com.grapecity.documents.excel.style.StyleManagerForWorksheet
    [javac] public NumberFormatManager getNumberFormatManager() {
    [javac] ^
    [javac] /Users/softpro/devel/workspaces/gcexcel-3.1.0-source-java/Model.Style/src/com/grapecity/documents/excel/style/StyleStorage.java:252: cannot find symbol
    [javac] symbol : class INumberFormatManager
    [javac] location: class com.grapecity.documents.excel.style.StyleStorage
    [javac] private INumberFormatManager _numberFormatManager = new NumberFormatManager();


    Please help to resolve this issue.
  • Replied 4 April 2020, 2:43 am EST

    Error log:

    ant-build-error-log.txt.zip
  • Replied 5 April 2020, 9:14 pm EST

    Hello,

    We have escalated your issue to the concerned team for further investigation.
    Tracking id for your issue is #DOCXLS-2336
    We will update you as soon as we hear anything from our concerned team.

    Thanks,
    Reeva
  • Replied 6 January 2021, 8:45 pm EST

    Hello,

    Our developers looked into your issue and they have asked to replace and use the updated build file instead: build.xml [ please see attachment]

    1) What is required memory configuration for Java and Ant in order to build gcexcel successfully?
    >> We recommend the configuration "memoryinitialsize="512m" memorymaximumsize="1024m" " for both java and ant.

    2) What are the recommended versions of JDK and Ant to build gcexcel?
    >> We recommend configuration: JDK >= 1.6, Ant >=1.8 .

    Hope it helps.

    Thanks,
    Reeva
    build (1).zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels