Eclipse:有没有办法快速导出JAR [英] Eclipse: Is there a way to quickly export JARs

查看:154
本文介绍了Eclipse:有没有办法快速导出JAR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这可能看起来有点模糊,快速等等。



我只是想知道是否有一种导出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.

Reference

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屋!

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