本文介绍了Netbeans 6.8,JDK 1.6和简单验证API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Netbeans 6.8,JDK 1.6并下载了Simple Validation API.当我尝试代码时,它给了我引用"org/openide"类的错误.
I am using Netbeans 6.8 , JDK 1.6 and downloaded Simple Validation API.When I try the code, it gives me errors referencing "org/openide" classes.
这可能是兼容性问题吗?我该如何解决?
Could this be a compatibility issue? How can I resolve this?
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/openide/util/Lookup
at org.netbeans.validation.api.ui.swing.SwingComponentDecorationFactory.getDefault(SwingComponentDecorationFactory.java:154)
at org.netbeans.validation.api.ui.swing.SwingValidationGroup.<init>(SwingValidationGroup.java:82)
at org.netbeans.validation.api.ui.swing.SwingValidationGroup.create(SwingValidationGroup.java:87)
推荐答案
将"nbstubs.jar"添加到您的类路径中.从 https://kenai.com/projects/simplevalidation/downloads 下载所有源"并找到放在validate-src.zip \ nbstubs \ dist中.
Add "nbstubs.jar" to your classpath. Download "All Sources" from https://kenai.com/projects/simplevalidation/downloads and find it in validation-src.zip\nbstubs\dist.
这篇关于Netbeans 6.8,JDK 1.6和简单验证API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!