如何仅提取JDK安装程序的内容 [英] How to extract ONLY the contents of the JDK installer

查看:68
本文介绍了如何仅提取JDK安装程序的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Java SDK/JDK版本5和6,我只需要安装包中包含的开发工具(和一些库),就不需要执行安装,这就是为什么我只看首先是一个zip包(对于Windows,只有exe安装文件),我只需要提取安装包的内容,我认为可以从命令行完成此操作,但是到目前为止,我还没有找到如何做到这一点(我已经考虑过WinRar和7-Zip,但是我真的很想找到不使用这些工具的方法)

I just downloaded the Java SDK/JDK versions 5 and 6, and I just need the development tools (and some libraries) contained in the installation packages, I don't need to perform an installation and that's why I was only looking for a zip package at first (for Windows there is only an exe installation file), I only need to extract the contents of the installation packages, I think this can be done from the command line but so far I haven't found how to do this (I already considered WinRar and 7-Zip, but I really want to find how to do it without using these tools)

您以前做过这件事吗?如何做过?

Have you done this before and how?

推荐答案

您可以执行一次安装,然后将已安装的内容压缩到\ Programs \ Java下.

You can do the installation once and then zip up the installed stuff placed under \Programs\Java.

以后可以将其解压缩到其他位置,并在大多数IDE中用作JDK,而无需完全重新安装(但Windows对此一无所知)

This can be unzipped elsewhere later and used as a JDK in most IDE's without needing a full reinstall (but then Windows does not know about it)

这篇关于如何仅提取JDK安装程序的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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