[英]How to install Java jdk 8 from command line?
I have search many places but didn't get proper details how to install from command line. 我搜索了很多地方,但没有获得如何从命令行安装的适当详细信息。
Please let me know how we can install JDK 8 from command line with example. 请让我知道我们如何通过示例从命令行安装JDK 8。
Assuming you're installing on Windows, you can use the following: 假设您要在Windows上进行安装,则可以使用以下命令:
Install the public JRE in silent mode :
以静默方式安装公共JRE:
jdk.exe /s
Install development tools and source code in silent mode but not the public JRE
以静默方式安装开发工具和源代码,但不安装公共JRE
jdk.exe /s ADDLOCAL="ToolsFeature,SourceFeature"
Install development tools, source code, and the public JRE in silent mode
以静默方式安装开发工具,源代码和公共JRE
jdk.exe /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature"
Install the public JRE in the specified directory C:\\test\\ in silent mode
以静默方式将公共JRE安装在指定目录C:\\ test \\中
jdk.exe /s /INSTALLDIRPUBJRE=C:\\test\\
You can find more details on the source article . 您可以在源文章中找到更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.