gpt4 book ai didi

java - 如何在我自己的项目中使用netbeans模块?

转载 作者:行者123 更新时间:2023-11-30 05:07:46 24 4
gpt4 key购买 nike

我已经完成了 netbeans tutorial创建一个向导对话框,结果向导对话框模块已经出现在我的netbeans的工具栏上,但问题是我如何在我自己的项目中使用该模块。 alt text

我创建了一个名为“testDemo”的新项目,并复制了该模块的所有源代码,然后我尝试创建该向导对话框的实例,但失败并显示“org.openide 无法找到”。 alt text

谢谢。

最佳答案

所需的 JAR 可以在 NetBeans 发行版中找到。在我的平台上,NetBeans 目录位于应用程序包本身内部:

$ cd /Applications/NetBeans/NetBeans\ 6.9.1.app/Contents/Resources$ find NetBeans -name \*openide-util\*jarNetBeans/platform/lib/locale/org-openide-util-lookup_ja.jarNetBeans/platform/lib/locale/org-openide-util-lookup_pt_BR.jarNetBeans/platform/lib/locale/org-openide-util-lookup_zh_CN.jarNetBeans/platform/lib/locale/org-openide-util_ja.jarNetBeans/platform/lib/locale/org-openide-util_pt_BR.jarNetBeans/platform/lib/locale/org-openide-util_zh_CN.jarNetBeans/platform/lib/org-openide-util-lookup.jarNetBeans/platform/lib/org-openide-util.jarNetBeans/platform/modules/locale/org-openide-util-enumerations_ja.jarNetBeans/platform/modules/locale/org-openide-util-enumerations_pt_BR.jarNetBeans/platform/modules/locale/org-openide-util-enumerations_zh_CN.jarNetBeans/platform/modules/org-openide-util-enumerations.jarNetBeans/platform/update/backup/netbeans/lib/locale/org-openide-util_ja.jarNetBeans/platform/update/backup/netbeans/lib/locale/org-openide-util_pt_BR.jarNetBeans/platform/update/backup/netbeans/lib/locale/org-openide-util_zh_CN.jar$ find NetBeans -name \*openide-awt\*jarNetBeans/platform/modules/locale/org-openide-awt_ja.jarNetBeans/platform/modules/locale/org-openide-awt_pt_BR.jarNetBeans/platform/modules/locale/org-openide-awt_zh_CN.jarNetBeans/platform/modules/org-openide-awt.jar

关于java - 如何在我自己的项目中使用netbeans模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4535510/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com