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).
Use the default settings.
Type in Project Name.
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.
III. Call the Startup Class
Create a new package "com.fr". Right-click to create a new class "StartFRDesigner" and add the main method.
For detailed code of the defined class, please see here:
Please see below.
Run it, and the designer will be started in IDEA. Please see below.
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.
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.