[Resolved] - Error: cannot be resolved to a type

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.

 

 

Any help is welcome!

 

Olavo Jr.

olavo-brito's picture
Joined: Oct 6 2010 - 2:00pm
Last seen: 4 years 7 months ago

3 Answers:

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.


Olavo Jr.

olavo-brito's picture
Joined: Oct 6 2010 - 2:00pm
Last seen: 4 years 7 months ago

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?

hozawa's picture
177365
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 11 months ago

Hello Hozawa,

I see no problems as this expression compiles and usually works on iReport version 5.6.0.

Olavo Jr.

olavo-brito's picture
Joined: Oct 6 2010 - 2:00pm
Last seen: 4 years 7 months ago
Feedback