如何安装java7和java 8?

编程入门 行业动态 更新时间:2024-10-10 03:33:20
本文介绍了如何安装java7和java 8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在windows7机器上安装java7和java8。

How to install both java7 and java8 in windows7 machine.

如果是,那么从java7到java8的顺序和任何开关选项是什么?

If Yes then what is the order and any switch options from java7 to java8 ?

推荐答案

您可以在计算机上安装任意数量的 JDK 实例(并在项目中使用它们)或工具),但只有一个可以作为主要使用 JAVA_HOME env变量,并且应该添加 bin dir到 PATH 的值,如%JAVA_HOME%\ bin 。

You can install any number of JDK instances on your computer (and use them in projects or tools), but only one can be used as the main with JAVA_HOME env variable and its bin dir should be added to the PATH value like %JAVA_HOME%\bin.

JAVA_HOME 位置来检测 PATH 允许您在终端或直接电话中使用 JDK 等应用,例如 javac 从任何地方

JAVA_HOME location is used by most software to detect default JDK location and binaries dir in PATH allows you to use JDK apps like javac in the terminal or by direct calls from anywhere

如果一切正确,那么您应该在终端中看到所需的java版本,只需输入:

If everything is correct then you should see desired java version in terminal just typing:

C:\Users\Admin>%JAVA_HOME%/bin/java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

Linux,Mac OS X或Win安装略有不同,但您可以在 Oracle网站。

Linux, Mac OS X or Win installations slightly differ from each other, but you can find all the necessary instructions at the Oracle site.

更多推荐

如何安装java7和java 8?

本文发布于:2023-11-25 20:19:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631213.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!