简体   繁体   English

java.lang.ClassNotFoundException: net.sf.jasperreports.engine.JRException

[英]java.lang.ClassNotFoundException: net.sf.jasperreports.engine.JRException

I am building a school management which needs to include terminal reports.我正在建立一个需要包括最终报告的学校管理。 I am using jasperreports but when I run the codes in intellij, the reports are shown.我正在使用 jasperreports,但是当我在 intellij 中运行代码时,会显示报告。 But when I create the jar file and run the it, this is the error i encounter from the console .但是当我创建 jar 文件并运行它时,这是我从控制台遇到的错误。

java.lang.ClassNotFoundException: net.sf.jasperreports.engine.JRException java.lang.ClassNotFoundException: net.sf.jasperreports.engine.JRException

I finally solved it.我终于解决了。

  1. I switched IDEs.我换了IDE。 I was using intellij all this while and all this nonsense was going on.我一直在使用intellij,所有这些废话都在发生。 I checked their documentation but to no use.我检查了他们的文档,但没有用。 I switched to Netbeans and the problem was resolved within less than 5 minutes.我切换到 Netbeans 并在不到 5 分钟的时间内解决了问题。 So if you are using one IDE, try another.因此,如果您正在使用一种 IDE,请尝试另一种。

  2. I used the same version of jasper reports in netbeans as was used in the jasper studio.我在 netbeans 中使用了与 jasper studio 中使用的相同版本的 jasper 报告。 So if the version of the jasperreports is 6.17 in the studio, please download and use the same version in your program.所以如果工作室的jasperreports版本是6.17,请在你的程序中下载并使用相同的版本。

  3. Finally, just realise that using other people's products and plugins and dependencies comes with its issues.最后,要意识到使用其他人的产品、插件和依赖项会带来问题。 Just creating a school software, I have had to use Intellij IDE, then switched to Netbeans IDE, then used Visual Studio code to indent my code, then installed javafx from somewhere, then downloaded POS 5.0 just because I want to include spreadsheet data in my program and then included ................ Man, I want to quit programming and enter to something easier.只是创建一个学校软件,我不得不使用 Intellij IDE,然后切换到 Netbeans IDE,然后使用 Visual Studio 代码缩进我的代码,然后从某个地方安装 javafx,然后下载 POS 5.0 只是因为我想在我的电子表格中包含电子表格数据程序然后包含 ................ 伙计,我想退出编程并进入更简单的事情。 Shit this is not a good profession.妈的,这不是个好职业。 The numerous times we all come to Stack overflow just tells how frustrating programming is.无数次我们都谈到堆栈溢出,这说明了编程是多么令人沮丧。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 JasperReport:net.sf.jasperreports.engine.JRException - JasperReport : net.sf.jasperreports.engine.JRException 找不到例外档案-net.sf.jasperreports.engine.JRException - exception file not found - net.sf.jasperreports.engine.JRException "net.sf.jasperreports.engine.JRException:无效的页面索引范围:0 - -1 of 0" - net.sf.jasperreports.engine.JRException: Invalid page index range : 0 - -1 of 0 net.sf.jasperreports.engine.JRException:找不到字节数据 - net.sf.jasperreports.engine.JRException: Byte data not found net.sf.jasperreports.engine.JRException:编译报告java源文件时出错 - net.sf.jasperreports.engine.JRException: Error compiling report java source files net.sf.jasperreports.engine.JRException:java.io.IOException:字节数组不是可识别的图像格式 - net.sf.jasperreports.engine.JRException: java.io.IOException: The byte array is not a recognized imageformat JasperReports-net.sf.jasperreports.engine.JRException:从bean检索字段值时出错 - JasperReports - net.sf.jasperreports.engine.JRException: Error retrieving field value from bean Getting.net.sf.jasperreports.engine.JREException:当传递 java.awt.Image 作为参数时,在位置找不到字节数据 - Getting net.sf.jasperreports.engine.JRException: Byte data not found at location when pass java.awt.Image as parameter Jaspersoft报告-net.sf.jasperreports.engine.JRException:net.sf.jasperreports.engine.fill.JRExpressionEvalException:计算表达式时出错 - Jaspersoft Report - net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression net.sf.jasperreports.engine.JRException:从 bean 检索字段值时出错:First_name - net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : First_name
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM