[Resolved] - Error: cannot be resolved to a type
Posted on May 20, 2015 at 8:02am
Gentlemen,
I'm using the Jaspersoft Studio version 6.0.4 and I'm migrating my iReport reports. I have a report that uses a class that is out of my workspace. The expression as shown below:
msg(" Recebi da {0} a importância de R$ {1} ( {2} ) referentes as férias, confome especificações acima mencionadas.", $F{matrizrazaosocial}, new DecimalFormat("#,###,##0.00").format($V{TOTAL_LIQUIDO_RETORNO}.doubleValue()), controller.gerais.GnsCtrGrs1a.valorPorExtenso($V{TOTAL_LIQUIDO_RETORNO}.doubleValue(), new Integer("0")))
Added in Properties for MyReports => Java Build Path => Source the Link Source, but without success.
.png)
.png)
Any help is welcome!
Olavo Jr.
Joined: Oct 6 2010 - 2:00pm
Last seen: 4 years 7 months ago
Posted on May 21, 2015 at 7:14am
Gentlemen,
It was necessary to add to the Java Build Path => Libraries src paths and the bin as the image below. Following their inclusion compilation took place without any more mistakes.
.png)
Olavo Jr.
Joined: Oct 6 2010 - 2:00pm
Last seen: 4 years 7 months ago
Posted on May 20, 2015 at 6:20pm
I don't think it's a classpath problem because you're not getting class not found error. Are you sure the data types of the numbers are all correct?
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 11 months ago
Posted on May 21, 2015 at 5:33am
Hello Hozawa,
I see no problems as this expression compiles and usually works on iReport version 5.6.0.
Olavo Jr.
Joined: Oct 6 2010 - 2:00pm
Last seen: 4 years 7 months ago