Eclipse / IntelliJ でデザイナを開く

  • 作成者:ayuan0625
  • 編集回数:35次
  • 最終更新:ayuan0625 于 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: FineReport カスタム開発
    • いいね
    • 良くない
    • 閲覧しただけ