简体   繁体   English

如何在自己的模块中使用netbeans“朋友”模块?

[英]How to use a netbeans “friend” module in own modules?

I'm trying to write a small module for netbeans. 我正在尝试为netbeans写一个小模块。 Now, everything compiles, but when I try to run the module the follwing error occurs: 现在,一切都可以编译了,但是当我尝试运行模块时,发生了以下错误:

The module mtzoutgoings is not a friend of C:\\Program Files (x86)\\NetBeans 8.0.2\\java\\modules\\org-netbeans-modules-java-j2seproject.jar mtzoutgoings模块不是C:\\ Program Files(x86)\\ NetBeans 8.0.2 \\ java \\ modules \\ org-netbeans-modules-java-j2seproject.jar的朋友

I've read that in the jar's MANIFEST.MF there is a section "OpenIDE-Module-Friends" in which all classes are referenced that are allowed to use the jar. 我已经阅读了jar的MANIFEST.MF文件中的“ OpenIDE-Module-Friends”部分,其中引用了所有允许使用jar的类。 Hm. 嗯。 So, is there any way that I can use it for my module as well, without beeing a "friend" of the jar ? 因此,有什么方法可以在不成为jar的“朋友”的情况下将其用于我的模块?

thanks for any hint! 感谢您的提示! Thorsten 托尔斯滕

I'm developing a module for NetBeans. 我正在为NetBeans开发模块。 When I tried to run my module, I received the following error message: 当我尝试运行模块时,收到以下错误消息:

The module my_module_name is not a friend of /home/antonio/netbeans-8.2/php/modules/org-netbeans-modules-php-api-phpmodule.jar 模块my_module_name不是/home/antonio/netbeans-8.2/php/modules/org-netbeans-modules-php-api-phpmodule.jar的朋友

What I did to get rid of that error message: I expanded Libraries , right-clicked PHP Module API and clicked Edit . 为了消除该错误消息,我做了些什么:我扩展了Libraries ,右键单击PHP Module API,然后单击Edit In the dialog box, I checked Implementation Version and clicked OK . 在对话框中,我选中了“ 实现版本”,然后单击“ 确定”

Reference: https://markmail.org/message/qulevpr647bpvshg 参考: https//markmail.org/message/qulevpr647bpvshg

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM