为 JBoss 安装 JDK,但不为 Glassfish 安装
我正在尝试设置一个与客户相匹配的环境。他们使用的是 JBoss 4.0.5。安装文档表明我需要单独安装 JDK 5.0。据我所知,JDK 安装与 GlassFish 应用服务器相关 - 安装 JDK 会获得 GF,卸载 GF 会删除 JDK。有没有办法只获取JDK?
I'm trying to get an environment set up to match a client. They're using JBoss 4.0.5. The installation docs indicate I need to install the JDK 5.0 separately. As far as I can tell, the JDK installation is tied to the GlassFish app server--installing the JDK gets me GF and uninstalling GF removes the JDK. Is there a way to get just the JDK?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JDK 可以与任何其他应用程序分开安装和使用,并且可以在同一台计算机上运行多个版本。 (与不同客户/项目合作时通常会出现这种情况)。
如果您的 JDK 安装与 GlassFish 应用程序服务器绑定,您可能使用“Java EE SDK”安装程序 ( http://www.oracle.com/technetwork/java/javaee/downloads/index.html )。它捆绑了在 JavaEE 上启动开发所需的一切。
您可以在 http://www.oracle.com/javase/downloads/index.html 获取仅包含 JDK 的普通安装程序。 oracle.com/technetwork/java/javase/downloads/index.html(转至 JDK 5 的早期版本),通过它您可以仅在计算机上的单独位置安装 JDK。
安装 JDK 5 后,您只需告诉 JBoss 使用该版本而不是 GlassFish/System Java 版本。为此,只需将 JAVA_HOME 路径设置为 JBoss 启动脚本所需的 JDK 就足够了。
您可以根据需要在计算机上安装任意数量的 JDK/JRE。只需确保对于每个需要特定版本的应用程序,您正确配置其
JAVA_HOME
即可。The JDK can be installed and used separately from any other application and you can have multiple versions running on the same machine. (Which is usually the case when working with different clients/projects).
If your JDK installation is tied to the GlassFish application server, you probably used the "Java EE SDK" installer ( http://www.oracle.com/technetwork/java/javaee/downloads/index.html ). This bundles everything you need for starting up development on JavaEE.
You can get the normal, JDK-only installer at http://www.oracle.com/technetwork/java/javase/downloads/index.html (go to Previous Releases for JDK 5) with which you can install only the JDK at a separate location on your computer.
After installing JDK 5, you just have to tell JBoss to use that one instead of the GlassFish/System Java version. For this only setting the
JAVA_HOME
path to desired JDK for the JBoss startup scripts should be enough.You can have as many JDK/JRE installations on your computer as you need. Just be sure that for each application which requires a specific version you configure its
JAVA_HOME
correctly.