Eclipse:有没有办法快速导出JAR [英] Eclipse: Is there a way to quickly export JARs
问题描述
所以这可能看起来有点模糊,快速等等。
我只是想知道是否有一种导出JAR文件的方法比一个更快的方式:
文件 - >导出 - > JAR文件
等等。
像我可以 Ctrl + Drag
浏览器导出与项目标题和 .jar
?
如何添加自定义快捷方式
要添加或更改快捷方式打开:Windows->首选项 - >常规 - >键。
这里可以找到所有Eclipse命令及其相关的
快捷键。
如何从Button运行批处理文件
您可以使用以下两个答案的组合:
基本上创建一个批处理文件,使JAR ...添加一个按钮执行它。
So this may seem a bit vague, how quick is "quick" etc.
Well I'm just wondering if there is a way of exporting a JAR file in a quicker way than:
File -> Export -> JAR File
etc etc.
Like can I Ctrl + Drag
to explorer and it export with the project title and .jar
?
How to add custom shortcuts
To add or change shortcuts open: Windows->Preferences->General->Keys. Here you can find all the Eclipse commands and their associated shortcut keys.
You can add a custom binding in eclipse to export your jar using a keyboard shortcut.
Example
I added bindings both for Runnable and non-runnable jar:
- Export Jar: CTRL+SHIFT+J
- Export Runnable Jar: CTRL+SHIFT+R
How to do with Ant File
If you want the JAR to be generated automatically you can look at the following question:
How to do with Batch file run from Button
You can use the combination of the following two answers:
Basically create a batch file that makes the JAR... add a button that executes it.
这篇关于Eclipse:有没有办法快速导出JAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!