[英]How To Export to JNLP in Eclipse
I watched today as someone painlessly exported a NetBeans java project to a JNLP file and HTML file that he could just copy to his web server. 我今天看到有人无痛地将NetBeans java项目导出到JNLP文件和HTML文件,他可以将其复制到他的Web服务器。 Making JNLP files by hand is slightly obnoxious, especially given the
codebase
parameter. 手工制作JNLP文件有点令人讨厌,特别是考虑到
codebase
参数。 I would love if I could do the same in Eclipse, but I can't seem to find such a function or a plugin which does this. 如果我能在Eclipse中做同样的事情,我会很高兴,但我似乎无法找到这样的功能或插件。
The only thing I've found is this article but I can't really parse it, it's a bit dense to me, for instance it mentions: 我发现的唯一的东西就是这篇文章,但我无法解析它,它对我来说有点密集,例如它提到:
Ensure that the org.eclipse.equinox.launcher plug-in is in the feature or in one of the included feature;
确保org.eclipse.equinox.launcher插件位于功能部件或其中一个包含的功能部件中;
But if that's even a grammatical sentence, I don't know how to ensure what it says. 但如果这甚至是一个语法句子,我不知道如何确保它所说的。
Since I never did find an easy way to do it in Eclipse, I did one better, and made JNLPs easy to use on your server! 因为我从来没有在Eclipse中找到一种简单的方法,所以我做得更好,并使JNLP易于在您的服务器上使用! I took the time to figure out the different little quirks that were confusing me, and decided that the necessity to manually specify an absolute codepath is obnoxious.
我花时间弄清楚让我困惑的不同小怪癖,并决定手动指定绝对代码路径的必要性是令人讨厌的。 So I wrote a PHP class which generates your JNLP file for you , so that you don't need to worry about the XML at all, and even better, you can use the exact same PHP file on a development server and a live server, or move it around, or whatever you'd like.
所以我写了一个PHP类来为你生成你的JNLP文件 ,这样你根本不用担心XML,甚至更好,你可以在开发服务器和实时服务器上使用完全相同的PHP文件,或移动它,或任何你想要的。 It updates the codebase dynamically.
它动态更新代码库。 Solved my problems.
解决了我的问题。
I'm pretty sure that page you found is for developing Eclipse Plugins. 我很确定您找到的页面是用于开发Eclipse插件的。
Why not just download NetBeans? 为什么不下载NetBeans?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.