Start the Designer in Eclipse

  • Last update:  2020-12-17
  • I. Introduction

    To implement tailored features on the basis of FineReport designer, normally you can launch the designer by calling the FineReport startup class in Eclipse or IDEA in preparation for debugging and custom development.

    You can do as follows.

    II. Import FineReport JARs

    1. Create an IDEA Project

    Create a new Java project with the existing JRE (version 1.8).

    1607066538704917.png

    1607066709373207.png

    Use the default settings.

    1607066740149500.png

    Type in Project Name.

    1607065306254960.png


    2. Load JARs

    Go to Files -> Project Structure -> Properties -> Modules and load FineReport JARs, including all the packages within %FR_HOME%/lib, %FR_HOME%/server/lib and %FR_HOME%/webapps/webroot/WEB-INF/lib. The tools.jar from JDK is needed as well. Please see below.

    1607065408321588.png

    1607065425836584.png

    III. Call the Startup Class

    Create a new package "com.fr". Right-click to create a new class "StartFRDesigner" and add the main method.

    1607065465936542.png

    For detailed code of the defined class, please see here:

    https://github.com/finereport-overseas/example/blob/release/10.0/src/main/java/com/fr/StartFRDesigner.java

    Please see below.

    1607065493720690.png

    Run it, and the designer will be started in IDEA. Please see below.

    1607065540325913.gif

    You can view all the runtime info in the log panel of IDEA.

    IV. Load Third-Party JARs

    In the case of using third-party JARs in custom functions, please follow the steps below.


    1. Import Third-Party JARs

    Place the needed third-party JARs into %FR_HOME%\webapps\webroot\WEB-INF\lib, which is the same directory of the fine-decision-10.0.jar provided by FineReport.

    1607065583483315.png


    2. Load Third-Party JARs in IDEA Project

    Load the third-party JARs in %FR_HOME%\webapps\webroot\WEB-INF\lib as described in II.2.


    Attachment List


    Theme: Secondary Development
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy