cannot be resolved to a Type Jaspersoft Studio

前端 未结 2 1828
情话喂你
情话喂你 2021-01-18 18:58

Using jaspersoft Studio 6.1.1

What i\'m trying to achieve is to transform the numbers i get to the Roman format, and for that i added a .jar that i created to do the

2条回答
  •  别那么骄傲
    2021-01-18 19:41

    i could fix my problem, if someone have the same problem, i hope this can help them.

    After you add the .jar to your java build path of your project, you have to import it to the report you want to use.

    libraries

    import it to your report

    Then, to use the functions in your .jar, i had to write the path of the function like this "package.Class.Method", in my case for example was:

    com.certuit.utils.RomanNumeral.roman(1)

    com.certuit.utils is the package.

    RomanNumeral the class

    roman(1) is the method i want to use

    This is what worked for me.

提交回复
热议问题