Hi,

I'm trying to compile a .jrxml file that use a import class of a custom jar, I tried some ways to add the custom jar to classpath but when I execute jasperstarter compile myreport.jrxml always throw the error:

1. Only a type can be imported. conversionscriplet.ConversionScriplet resolves to a package
import conversionscriplet.ConversionScriplet;

Partial code of the report:

...
<property name="ireport.x" value="0"/>
    <property name="ireport.y" value="0"/>
    <import value="conversionscriplet.ConversionScriplet"/>
    <parameter name="number_exp" class="java.lang.String"/>
    <queryString>
        <![CDATA[SELECT
     *
FROM
     Requests
WHERE
     number_exp = $P{number_exp}]]>
    </queryString>
   ...

¿is it possible to compile reports with imports?

 

Last edit: Antonio Nieto García 2021-11-04