[英]Why is Jar Bundler gone in Mac OS X Mountain Lion 10.8.2
There was a application from Apple called Jar Bundler
which got distributed by Apple with Xcode in the past. 苹果公司的一个名为
Jar Bundler
的应用程序过去曾由Apple与Xcode分发。
The purpose of Jar Bundler
was to create Mac OS X application bundles ( *.app
directories) for Java applications until version 6 (1.6.x) for Mac OS X user convenience. Jar Bundler
的目的是为Java应用程序创建Mac OS X应用程序包( *.app
目录),直到版本6(1.6.x)为Mac OS X用户提供便利。
As of now, you can still get 截至目前,你仍然可以得到
aka 又名
for the current Mac OS X Mountain Lion 10.8.2 via 对于当前的Mac OS X Mountain Lion 10.8.2来说
but you cannot get Jar Bundler
. 但你不能得到
Jar Bundler
。
I'm using an up to date Mac OS X 10.8.2 and up to date Xcode 4.6 (4H127) with all Command Line Tools installed. 我正在使用最新的Mac OS X 10.8.2和最新的Xcode 4.6(4H127),并安装了所有命令行工具 。 After all research I did I would expect it here:
经过我所做的所有研究后,我希望它在这里:
/usr/share/java/Tools/Jar Bundler.app
But there isn't any Jar Bundler
. 但是没有任何
Jar Bundler
。 Even a global search sudo find / -name Jar\\ Bundler.app
did not really find Jar Bundler
. 即使是全局搜索
sudo find / -name Jar\\ Bundler.app
也没有真正找到Jar Bundler
。
So my question is: What is the last known Xcode version coming with Jar Bundler
所以我的问题是:
Jar Bundler
最新的Xcode版本是什么
Note: I know there are other ways to achieve what Jar Bundler
is doing here, like for example using Mac OS X JarBundler ANT Task or build the whole application package by hand, but thats not the question. 注意:我知道还有其他方法可以实现
Jar Bundler
在这里所做的事情,例如使用Mac OS X JarBundler ANT Task或手工构建整个应用程序包,但这不是问题。
So looks like I have to answer the question my self. 所以看起来我必须回答我自己的问题。 So don't punch me for that.
所以不要为此打我。
After intensive research and downloading all Java Developer Packages from Apple since 2012 til now (March 2013) it turns out its has nothing to do wit Xcode. 经过深入研究并从2012年开始从Apple下载所有Java开发包,直到现在(2013年3月),它与Xcode无关。
Jar Bundler
came in the past with Apples own Java Developer Packages. Jar Bundler
过去使用Apples自己的Java Developer Packages。 After trying them all out, one after another and inspecting them with Pacifist I found the following out: 在尝试了所有这些之后,一个接一个地用Pacifist检查它们,我发现了以下内容:
Java for OS X 2012-005 Developer Package from 2012-09-06 was the last one installing the following Tools: 从2012-09-06开始的OS for OS X 2012-005 Developer Package是安装以下工具的最后一个:
/usr/share/java/Tools/JavaVisualVM.app/ /usr/share/java/Tools/Jar Bundler.app/ /usr/share/java/Tools/Applet Launcher.app/
starting with 从...开始
Java for OS X 2012-006 Developer Package from 2012-10-16 适用于OS X 2012-006开发人员包的Java,2012-10-16
/usr/share/java/Tools
directory gets removed by the installation of this package, but there are no new /usr/share/java/Tools/*.app
s re-installed anymore by the same package. 通过安装此软件包删除目录,但是没有新的
/usr/share/java/Tools/*.app
由同一个软件包重新安装。
Even re-installation of 2012-005 after /usr/share/java/Tools
directory got removed by 2012-006 doesn't bring you back the Jar Bundler.app
. 甚至在2012-006删除
/usr/share/java/Tools
目录后重新安装2012-005也不会让你回到Jar Bundler.app
。
So the only way to get Jar Bundler.app
back after you lost it while some Apple Java Developer Package update exercises you need to do the following : 因此,在您丢失它之后获取
Jar Bundler.app
的唯一方法是在进行Apple Java Developer Package更新练习时,您需要执行以下操作:
*.pkg
files. *.pkg
文件。 JavaDeveloper.pkg\\JavaTools.pkg\\Jar Bundler.app
JavaDeveloper.pkg\\JavaTools.pkg\\Jar Bundler.app
Install to Default location
Install to Default location
Terminal.app
Terminal.app
open /usr/share/java/Tools/Jar\\ Bundler.app/
Thats it and don't forget to back it up. 多数民众赞成,不要忘记支持它。
To understand which Apple release number belongs to which JDK/JRE version numbers, see below: 要了解哪个Apple版本号属于哪个JDK / JRE版本号,请参阅以下内容:
Java for OS X 2012-005 Developer Package from 2012-09-06 适用于OS X 2012-005开发人员包的Java,2012-09-06
$ java -version java version "1.6.0_35" Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M4203) Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)
Java for OS X 2012-006 Developer Package from 2012-10-16 适用于OS X 2012-006开发人员包的Java,2012-10-16
$ java -version java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
Java for OS X 2013-001 Developer Package from 2013-02-19 适用于OS X 2013-001开发人员包的Java,自2013-02-19
$ java -version java version "1.6.0_41" Java(TM) SE Runtime Environment (build 1.6.0_41-b02-445-11M4107) Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-445, mixed mode)
Java for OS X 2013-002 Developer Package from 2013-03-04 适用于OS X 2013-002 Developer Package的Java,2013-03-04
$ java -version java version "1.6.0_43" Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-11M4203) Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode)
The official replacement for JarBundler is the javapackager tool. JarBundler的官方替代品是javapackager工具。
As an example of its use, a simple, well explained, step by step tutorial for making OSX apps from a java source is here: http://centerkey.com/mac/java/ . 作为其使用的一个例子,这里有一个简单的,解释良好的分步教程,用于从java源代码制作OSX应用程序: http : //centerkey.com/mac/java/ 。
In short, if you want Jar Bundler, install "OS X 2012-005 Developer Package". 简而言之,如果您想要Jar Bundler,请安装“OS X 2012-005 Developer Package”。 More recent packages have it removed.
更新的软件包将其删除。
Jar Bundler is retired now and will not work for projects requiring Java 7 and up. Jar Bundler现在已经退役,不适用于需要Java 7及更高版本的项目。 Check this other StackOverflow question «Bundle a Java 7 .jar for Mac» for more details.
查看另一个StackOverflow问题«捆绑Java 7 .jar for Mac»了解更多详情。
The solutions mentioned in this question will in all likelihood continue to function, but only for projects up to Java 6. 此问题中提到的解决方案很可能会继续运行,但仅适用于Java 6之前的项目。
As a developer with Pyxis Software, I would like to add that we have developed a small inexpensive application called Pyxis Bundler that makes it really easy to create Mac application bundles. 作为Pyxis Software的开发人员,我想补充一点,我们已经开发了一个名为Pyxis Bundler的小型廉价应用程序,这使得创建Mac应用程序包非常容易。
We designed it as a replacement for the Jar Bundler application that was previously shipped with Xcode. 我们将其设计为以前随Xcode一起提供的Jar Bundler应用程序的替代品。
To use Pyxis Jar Bundler you will need a minimum of three items: 要使用Pyxis Jar Bundler,您至少需要三个项目:
Then simply enter your application name, version number, ram requirements, your package name, main class name, and a few other items. 然后只需输入您的应用程序名称,版本号,ram要求,您的包名称,主类名称以及其他一些项目。 Next click Create and that's it, your application is bundled into a standard Mac Bundle.
接下来单击Create,就是这样,您的应用程序将捆绑到标准Mac Bundle中。
Note that any Application created is saved to a preferences file. 请注意,创建的任何应用程序都保存到首选项文件中。 What this means is that bundling updates is simply a matter of choosing your application name from a drop-down list and incrementing the version number and then clicking the Create button.
这意味着捆绑更新只需从下拉列表中选择应用程序名称并递增版本号然后单击“创建”按钮即可。
On El Capitan and Java 9, java packager
is installed here: 在El Capitan和Java 9上,安装了
java packager
:
"/Library/Java/JavaVirtualMachines/jdk-9.xxjdk/Contents/Home/bin/javapackager" “/Library/Java/JavaVirtualMachines/jdk-9.xxjdk/Contents/Home/bin/javapackager”
Make an alias: alias javapackager="/Library/Java/JavaVirtualMachines/jdk-9.xxjdk/Contents/Home/bin/javapackager"
创建一个别名:
alias javapackager="/Library/Java/JavaVirtualMachines/jdk-9.xxjdk/Contents/Home/bin/javapackager"
Just do this: 这样做:
Now you have to go inside this folder: Packages. 现在你必须进入这个文件夹:包。 You'll find JavaEssential.pkg and JavaTools.
你会发现JavaEssential.pkg和JavaTools。 Jar bundler is in JavaTools.pkg.
Jar bundler在JavaTools.pkg中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.