Bom dia,
Estou sem conseguir abrir relatórios feitos no IReport depois de alterá-los e compilá-los.
Esses relatórios são antigos e tentei alterá-los com a versão 1.2.8, mas não deu certo, olhando a pasta lib do projeto, verifiquei que a versão do jasper é 0.5.3, então baixei duas versões do ireport que utilizam essa versão do jasper: a 0.3.1 e 0.3.2.
A primeira, quando eu compilo o relatório, ao inves de gerar um jasper, gera um no formato “arquivo”, então não consigo abrir.
O segundo gera uma jasper, mas não consigo abrir o relatório na aplicação.
Aparece a seguinte mensagem de erro no eclipse:
Exception in thread “ AWT - EventQueue - 0 ” java . lang . UnsupportedClassVersionError : Bad version number in . class file
at java . lang . ClassLoader . defineClass1 ( Native Method )
at java . lang . ClassLoader . defineClass ( Unknown Source )
at java . lang . ClassLoader . defineClass ( Unknown Source )
at dori . jasper . engine . util . JRClassLoader . loadClass ( JRClassLoader . java : 247 )
at dori . jasper . engine . util . JRClassLoader . loadClassFromBytes ( JRClassLoader . java : 162 )
at dori . jasper . engine . design . JRAbstractJavaCompiler . loadCalculator ( JRAbstractJavaCompiler . java : 197 )
at dori . jasper . engine . design . JRDefaultCompiler . loadCalculator ( JRDefaultCompiler . java : 184 )
at dori . jasper . engine . fill . JRBaseFiller . loadCalculator ( JRBaseFiller . java : 630 )
at dori . jasper . engine . fill . JRBaseFiller .< init > ( JRBaseFiller . java : 327 )
at dori . jasper . engine . fill . JRVerticalFiller .< init > ( JRVerticalFiller . java : 124 )
at dori . jasper . engine . fill . JRVerticalFiller .< init > ( JRVerticalFiller . java : 116 )
at dori . jasper . engine . fill . JRFiller . fillReport ( JRFiller . java : 111 )
at dori . jasper . engine . JasperFillManager . fillReport ( JasperFillManager . java : 222 )
at dori . jasper . engine . JasperFillManager . fillReport ( JasperFillManager . java : 209 )
at Utilities . abrirRelatorioJasper ( Utilities . java : 848 )
at Utilities . geraRelatorioJasper ( Utilities . java : 805 )
at RegrasGuiaOdontologica . mouseReleased ( RegrasGuiaOdontologica . java : 152 )
at java . awt . AWTEventMulticaster . mouseReleased ( Unknown Source )
at java . awt . Component . processMouseEvent ( Unknown Source )
at javax . swing . JComponent . processMouseEvent ( Unknown Source )
at java . awt . Component . processEvent ( Unknown Source )
at java . awt . Container . processEvent ( Unknown Source )
at java . awt . Component . dispatchEventImpl ( Unknown Source )
at java . awt . Container . dispatchEventImpl ( Unknown Source )
at java . awt . Component . dispatchEvent ( Unknown Source )
at java . awt . LightweightDispatcher . retargetMouseEvent ( Unknown Source )
at java . awt . LightweightDispatcher . processMouseEvent ( Unknown Source )
at java . awt . LightweightDispatcher . dispatchEvent ( Unknown Source )
at java . awt . Container . dispatchEventImpl ( Unknown Source )
at java . awt . Window . dispatchEventImpl ( Unknown Source )
at java . awt . Component . dispatchEvent ( Unknown Source )
at java . awt . EventQueue . dispatchEvent ( Unknown Source )
at java . awt . EventDispatchThread . pumpOneEventForHierarchy ( Unknown Source )
at java . awt . EventDispatchThread . pumpEventsForHierarchy ( Unknown Source )
at java . awt . EventDispatchThread . pumpEvents ( Unknown Source )
at java . awt . EventDispatchThread . pumpEvents ( Unknown Source )
at java . awt . EventDispatchThread . run ( Unknown Source )
desde já agradeço qualquer ajuda, pois não sei mais o q fazer.