在Windows上手动安装Java? [英] Installing Java manually on Windows?

查看:140
本文介绍了在Windows上手动安装Java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过许多使用JDK的产品,我想知道是否有一种方法可以通过简单地将内容解压缩到一个目录来安装JDK,因此在添加/删除程序中没有创建图标,没有注册表项等。 / p>

在这种情况下:
我们如何为浏览器配置Java插件?
我们如何通过Java的控制面板条目配置设置?

解决方案

是的,你可以创建一个压缩JDK,将其解压缩到目标计算机上,然后从该目录运行java,javac等,直到你的内容。



创建这样一个zip文件的最简单方法是在机器上安装JDK,然后压缩JDK目录的内容。我们在某些情况下执行此操作,在这些情况下,我们需要准确控制将在部署中使用的Java配置。在这种情况下,我们的脚本只是将JAVA_HOME(或等效的)指向我们内部捆绑的JDK,而不是依靠系统管理员来准确安装到达之前我们需要的东西。



在与浏览器集成方面,这可能会有点问题。简短的回答是否定的,如果没有某些类型的安装程序,则无法直接与浏览器集成。


I have seen many products bundeled with JDK, I wonder if there is a way where one can install JDK by simply unzipping contents to a directory, so there is no icon created in add/remove programs, no registry entries etc.

Also in this case: How can we configure Java plugin for browsers? And how can we configure settings as seen via Control Panel entry for Java?

解决方案

Yes, you can create a zipped up JDK, unzip it on the target machine and run java, javac, etc. from that directory to your heart's content.

The easiest way to create such a zip file is to install the JDK on a machine and then zip up the contents of the JDK directory. We do this in certain circumstances where we need to control exactly what configuration of Java will be used in our deployments. In that case, our scripts just point JAVA_HOME (or the equivalent) to our internally bundled JDK instead of relying on a sysadmin to install exactly what we need prior to arrival.

In terms of integrating with the browsers, that can be a bit more problematic. The short answer is no, you can't integrate directly with the browser without some sort of installer.

这篇关于在Windows上手动安装Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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