Netbeans 6.8 , JDK 1.6 and Simple Validation API

淺唱寂寞╮ 提交于 2020-01-04 11:01:26

问题


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)

回答1:


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.



来源:https://stackoverflow.com/questions/13299470/netbeans-6-8-jdk-1-6-and-simple-validation-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!