Java,iRpeort和JasperSoft - 没有针对编译器设置的报告:null [英] Java, iRpeort and JasperSoft - No report set for compiler: null

查看:276
本文介绍了Java,iRpeort和JasperSoft - 没有针对编译器设置的报告:null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个教授离开这个类的代码,一个java程序,旨在利用Oracle数据库,拉数据,并将它们整齐地编译成一个报告。

I'm studying this heap of code a professor left for the class, a java program designed to tap into an Oracle Database, pull data, and compile them neatly into a report.

我不太熟悉Java和报告(更加熟悉C#和Crystal Reports),因此,学习,但根据我的测试,几个报告工作正常。然而,三个人似乎在使我的一天变得不那么明亮了。

I'm not too familiar with Java and reports (much more familiar with C# and Crystal Reports), hence, the studying, but according to my testing, several of the reports work fine. Three, however, seem dead-set on making my day that much less brighter.

奇怪的是,所有这些报告在Eclipse环境。一旦使用安装程序进行部署,就会发出一个好奇的错误:

What's strange is that all the reports work fine while in the Eclipse environment. Once deployed using the installer, one gives off a curious error:

没有为语言编写报告编译器:null

我不知道是什么原因造成的。早期尝试咨询我的朋友Google导致我相信有一个版本不兼容,或者没有包含丢失的jar文件,或者同样难以理解的东西。

I have no idea as to what causes this. Early attempts at consulting my friend Google led me to believe there's either a version incompatibility, or a missing jar file that wasn't included, or something equally hard to comprehend.

其他两个报告在Eclipse环境中工作正常,并且仅在某些部署时失败,都会发出一个AWT-EventQueue-0AbstractMethodError,但由于并不总是发生(与之前的问题相反,时间),我会一起处理这些问题一个问题,从第一个开始。

The other two reports that work fine in the Eclipse environment and fail only on some deployment both give off a "AWT-EventQueue-0" AbstractMethodError, but since this doesn't always happen (as opposed to the former problem, which happens all the time), I'll tackle these issues one problem at a time, starting with the first.

为了参考,这里是我认为的东西事项:

For reference, here's the stuff I think matters:


  • jasperreports-3.5.2.jar,位于参考库

  • groovy-all.1.5.5.jar也位于参考库

  • jasperreports-3.0.0.jar,jasperreports-3.5。 2.jar和jasperreports-3.7.6.jar,位于 lib

  • 我相信这些报告是用iReport 3.0.0

  • jasperreports-3.5.2.jar, located in the Referenced Libraries
  • groovy-all.1.5.5.jar also located in the Referenced Libraries
  • jasperreports-3.0.0.jar, jasperreports-3.5.2.jar, and jasperreports-3.7.6.jar, located in lib
  • I believe the reports were created with iReport 3.0.0

项目结构:项目名称为Goldilocks

Project Structure: Project name is Goldilocks


  • Goldilocks:

    • JRE系统库

    • 参考库

    • lib

    • src (这个文件夹里面有.java文件和文件夹的文件夹)

    • 报告

      • jasper(所有的.jrxml和。 jasper文件在此文件夹内)

      • Goldilocks:
        • JRE System Library
        • Referenced Libraries
        • lib
        • src (Folders with the .java files and classes inside them are inside this folder)
        • reports
          • jasper (All the .jrxml and .jasper files are inside this folder)

          使用的操作系统/软件


          • Windows 7和Linux Ubuntu(dev系统)

          • Eclipse,Juno Release(dev软件;由于这个程序是早些时候制作的,我只是在调查,实际的开发软件可能是早期版本,Ganymede iirc)

          • Linux Ubuntu和Windows XP(目标系统)

          我可以帮助您解决什么原因没有报告编译器设置为语言:null 错误?如何解决这个问题?

          Can I have some help on what causes No report compiler set for language : null error? And how do I remedy this?

          谢谢。

          关于
          Zack_Falcon

          Regards, Zack_Falcon

          推荐答案


          1. 不要一起使用jasperreports-3.5.2.jar,jasperreports-3.0.0.jar,jasperreports -3.7.6.jar只使用一个对应于你的jrxml(jasper)

          2. 在iReport中打开你的Report.jrxml,并设置language = java(如果在报表中使用java)的报告。

          这篇关于Java,iRpeort和JasperSoft - 没有针对编译器设置的报告:null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆