[英]java exception verifyError in NetBeans
This question is similar, but didn't work. 这个问题是相似的,但是没有用。 I copied and pasted my project folder (because all I need is a different background image for a different client), then opened the copied project with NetBeans and run it. 我复制并粘贴了项目文件夹(因为我需要的是不同客户端的不同背景图像),然后使用NetBeans打开复制的项目并运行它。 This error arises on startup: 在启动时出现此错误:
Exception in thread "main" java.lang.VerifyError: Constructor must call super() or this() before return in method com.einge.scadaremotecontrol.ProgramacionAuto.<init>(Lorg/joda/time/DateTime;I)V at offset 0
The original project works just fine (I close one to run the other, so as not to get confused or have two identical programs running in the VM). 原始项目运行良好(我关闭了一个项目以运行另一个项目,以免混淆或在VM中运行两个相同的程序)。 What could be the problem? 可能是什么问题呢? NetBeans is 7.1.2 JDK is 7u5 Thanks in advance NetBeans是7.1.2 JDK是7u5预先感谢
Edit: I have just tried it in an other computer and it works fine (NB 7.1, JDK 7u3 it think) Still have no idea what happened back there. 编辑:我刚刚在另一台计算机上尝试过它,并且工作正常(NB 7.1,JDK 7u3认为)仍然不知道那里发生了什么。 If any solutions come up they will be welcomed. 如果有任何解决方案,将受到欢迎。
Rebuild the project first. 首先重建项目。 Most probably it will take care of it. 它很可能会照顾好它。
If not, rebuild it, exit netbeans. 如果没有,请重建它,退出netbeans。 Then reopen after few seconds. 然后几秒钟后重新打开。 This is what I do in JavaFX unexpected build errors. 这就是我在JavaFX中发生的意外生成错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.