[英]Exception in thread “AWT-EventQueue-2” java.lang.NoClassDefFoundError
I get the error above in my Eclipse signed web applet. 我在Eclipse签名的Web小程序中收到上述错误。 I would appreciate any help..
我将不胜感激任何帮助..
It states that my class is not found: 它指出找不到我的班级:
Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: com/dermalog/common/exception/DermalogException
Although I have images as proof that it is included in the build: 尽管我有图像证明它已包含在构建中:
How I added my jar files: 我如何添加我的jar文件:
Adding a jar to project Java Build Path in an Eclipse project in most cases only means to add it to classpath used for compilation. 在大多数情况下,将jar添加到项目中的Eclipse项目中的Java Build Path仅意味着将其添加到用于编译的类路径中。 Items set on build path are also used to create classpath when running your application or applet from within Eclipse.
在Eclipse中运行应用程序或applet时,在构建路径上设置的项目也可用于创建类路径。
The build path however does not say anything about the classpath of your applet when it runs in a different context, eg on a webpage. 但是,当小程序在不同的上下文中(例如,在网页上)运行时,构建路径不会说明小程序的类路径。 There, one needs to make sure that classpath contains all jars needed to run the app.
在那里,需要确保classpath包含运行该应用程序所需的所有jar。
There are two simple ways to do this: 有两种简单的方法可以做到这一点:
EDIT: Ok, I checked your jar file and found this: 编辑:好的,我检查了您的jar文件,发现了这一点:
Class-path: dermalog.afis.drawing.compression.jar dermalog.afis.fingercode.jar dermalog.imaging.capturing.jar
The page I linked above explains that. 我上面链接的页面对此进行了解释。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.