NetBeans中的导出向导应用程序 [英] Export wizard application in netbeans

查看:205
本文介绍了NetBeans中的导出向导应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Netbeans向导模板 https://platform创建了此链接中提到的示例应用程序.netbeans.org/tutorials/nbm-wizard.html

I did a sample application mentioned in this link using Netbeans Wizard template https://platform.netbeans.org/tutorials/nbm-wizard.html

但是如何导出为可执行jar.我只想在没有IDE的情况下独立执行项目.有任何建议.

But how do I export as executable jar. I just want to execute the project independently with out IDE. Any suggestions.

推荐答案

我在您指向的教程中找不到它,但是为了共享新创建的Netbeans插件,您需要将其导出为二进制NetBeans模块或.nbm文件.右键单击您的项目,然后选择创建NBM".在此处查看该旧教程: http://docs. huihoo.com/netbeans/6.0/kb/60/platform/nbm-google.html

I can't find it in the tutorial that you point to but in order to share your newly created Netbeans plugin you need to export it as a binary NetBeans Module or .nbm file. Right click on your project and select Create NBM. Check this old tutorial here: http://docs.huihoo.com/netbeans/6.0/kb/60/platform/nbm-google.html

对于Netbeans 8.0:创建文件后,您可以转到工具->插件,下载选项卡,然后单击添加插件

For Netbeans 8.0: When the file is created you can then go Tools->Plugins , downloaded tab and then click add plugins

编辑(根据您的评论)

您指向的教程将指导您构建自定义的Netbeans模块(在本例中为向导).该模块打包为.nbm文件,您可以将其分发,以便可以将其安装到任何Netbeans IDE中.

The tuturial you point to guides you to build a custom Netbeans module (in this case a Wizard). The module is packaged as a .nbm file which you can then distribute it so that it can be installed to any Netbeans IDE.

事实证明,您需要诸如"Java Swing Wizard"应用程序之类的东西.通过搜索google,您可以找到一些符合您需要的结果(这些结果来自第一个google结果):

As it turns out you need something like a "Java swing wizard" application. By searching google you can find some results that fit your needs (these are from the first google results):

  • http://www.oracle.com/technetwork/articles/javase/wizard-136789.html
  • https://code.google.com/p/cjwizard/
  • http://www.javaworld.com/article/2077850/java-se/open-source-java-projects-the-wizard-api.html
  • http://sourceforge.net/projects/jwf/
  • Similar question (maybe you can post a comment asking for details there): https://softwareengineering.stackexchange.com/questions/132723/is-there-a-java-library-to-create-assisted-wizard-flow-into-your-desktop-applica

希望我不会引导您走错路,但是您也可以看看另一件事(我自己没有检查过,但是您可能会发现它很有用)是如何创建OSGI模块以及转换Netbeans的可能性模块到OSGI模块. 在这里查看: http://wiki.netbeans.org/OSGiAndNetBeans .

Hope I am not leading you to the wrong way but another thing you can also have a look at, (haven't checked it myself but you might find it useful) is how to create OSGI modules and the posibility of converting Netbeans modules to OSGI modules. Look here: http://wiki.netbeans.org/OSGiAndNetBeans.

这篇关于NetBeans中的导出向导应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆