我已经完成netbeans tutorial来创建向导对话框,结果向导对话框模块出现在我的netbeans的工具栏上,但问题是如何在我自己的项目中使用该模块。
我创建了一个名为'testDemo'的新项目,并复制了该模块的所有源代码,然后我尝试创建该向导对话框的实例,但由于'org.openide找不到'而失败。
感谢。
答案 0 :(得分:2)
可以在NetBeans发行版中找到所需的JAR。在我的平台上,NetBeans目录位于应用程序包本身内部:
$ cd /Applications/NetBeans/NetBeans\ 6.9.1.app/Contents/Resources $ find NetBeans -name \*openide-util\*jar NetBeans/platform/lib/locale/org-openide-util-lookup_ja.jar NetBeans/platform/lib/locale/org-openide-util-lookup_pt_BR.jar NetBeans/platform/lib/locale/org-openide-util-lookup_zh_CN.jar NetBeans/platform/lib/locale/org-openide-util_ja.jar NetBeans/platform/lib/locale/org-openide-util_pt_BR.jar NetBeans/platform/lib/locale/org-openide-util_zh_CN.jar NetBeans/platform/lib/org-openide-util-lookup.jar NetBeans/platform/lib/org-openide-util.jar NetBeans/platform/modules/locale/org-openide-util-enumerations_ja.jar NetBeans/platform/modules/locale/org-openide-util-enumerations_pt_BR.jar NetBeans/platform/modules/locale/org-openide-util-enumerations_zh_CN.jar NetBeans/platform/modules/org-openide-util-enumerations.jar NetBeans/platform/update/backup/netbeans/lib/locale/org-openide-util_ja.jar NetBeans/platform/update/backup/netbeans/lib/locale/org-openide-util_pt_BR.jar NetBeans/platform/update/backup/netbeans/lib/locale/org-openide-util_zh_CN.jar $ find NetBeans -name \*openide-awt\*jar NetBeans/platform/modules/locale/org-openide-awt_ja.jar NetBeans/platform/modules/locale/org-openide-awt_pt_BR.jar NetBeans/platform/modules/locale/org-openide-awt_zh_CN.jar NetBeans/platform/modules/org-openide-awt.jar