1. Download JDK from the official website. Download jdk-7u25-linux-x64.tar.gz 2 and create the installation directory.Sudo mkdir/usr/lib/jvm3. decompress the packageTar zxvf./jdk-7u25-linux-x64.tar.gz-C/usr/lib/jvm4. Configure the environment
After a long time of JDK7, I finally settled on the machine with peace of mind. Now I will summarize the installation tips:1.To install JDK 7, you need to pull the JDK binary file .. This simple, direct download on the ORACLE official website can
Installation of the independent JDK process will not speak, not to Baidu's on it.Change default to JDK below1. Update parameters to make configuration effectiveUpdate-alternatives--install/usr/bin/java java /***/bin/java
Install JDK online for CentOS and jdk online for centos
1. Install jdk online using the yum command
1. view the jdk version currently supported on the cloud
[root@localhost ~]# yum search java|grep jdkldapjdk-javadoc.noarch : Javadoc for ldapjdkjava-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environmentjava-1.6.0-openjdk-demo.x86_64 : OpenJDK Demosjava-1.6.0-
CentOS yum installation JDK tutorial, centosyumjdk
How to install JDK in CentOS yum
Guide
JDK is a Java language software development kit. It is mainly used for java applications on mobile devices and embedded devices. JDK is the core of java Development. It includes the JAVA Runtime Environment (JVM + Java System Class Library) and JAVA tools.
1. view the jdk version currently supported on the cloud
[root@localhost ~]# yum search java|grep jdkldapjdk-javadoc.noarch : Javadoc f
PATH
Make the modification take effect:
[root@localhost java]# source /etc/profile
4. Verify JDK Validity
[root@localhost java]# java -versionjava version "1.7.0_79"Java(TM) SE Runtime Environment (build 1.7.0_79-b15)Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Method 2: Install JDK with yum
1. Check which jdk versions are available in the yum Library (only openjdk is found currently)
[root@localhost ~]# yum search java|grep jdklda
JAVA_HOME JRE_HOME CLASS_PATH PATH
Make the modification take effect:
[Root @ localhost java] # source/etc/profile
4. Verify JDK Validity
[Root @ localhost java] # java-versionJava version "1.7.0 _ 79"Java (TM) SE Runtime Environment (build 1.7.0 _ 79-b15)Java HotSpot (TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Method 2: Install JDK with yum
1. Check which jdk versions are available in the yum Library (only openjdk is found currently)
[Root @
, Mixed mode)method Two: with Yum Installing the JDK (CentOS)1. See which jdk versions are available in the Yum Library[email protected] ~]# Yum search Java|grep JDKLdapjdk-javadoc.x86_64:javadoc for LDAPJDKJAVA-1.6.0-OPENJDK.X86_64:OPENJDK Runtime EnvironmentJAVA-1.6.0-OPENJDK-DEMO.X86_64:OPENJDK DemosJAVA-1.6.0-OPENJDK
available in the Yum Library (OPENJDK only)[Email protected] ~]#YumSearch java|grepJDKLDAPJDK-javadoc.x86_64:javadoc forLdapjdkjava-1.6.0-Openjdk.x86_64:OpenJDK Runtime Environmentjava-1.6.0-openjdk-Demo.x86_64:OpenJDK Demosjava-1.6.0-openjdk-Devel.x86_64:
changes take effect:[Email protected] java]# Source/etc/profile4. Verifying JDK Validity[Email protected] java]# java-versionJava Version "1.7.0_79"Java (TM) SE Runtime Environment (build 1.7.0_79-b15)Java HotSpot (TM) 64-bit Server VM (build 24.79-b02, Mixed mode)Method Two: Install the JDK with Yum1. See which JDK versions are available in the Yum Library (OPENJDK only)[email protected] ~]# Yum search Java|grep JDKLdapjdk-javadoc.x86_64:javadoc for
changes take effect:[Email protected] java]# Source/etc/profile4. Verifying JDK Validity[Email protected] java]# java-versionJava Version "1.7.0_79"Java (TM) SE Runtime Environment (build 1.7.0_79-b15)Java HotSpot (TM) 64-bit Server VM (build 24.79-b02, Mixed mode)Method Two: Install the JDK with Yum1. See which JDK versions are available in the Yum Library (OPENJDK only)[email protected] ~]# Yum search Java|grep JDKLdapjdk-javadoc.x86_64:javadoc for
How do I find the JDK installation path on a Linux server? Are there ways to find the installation path for locating the JDK? Are there some limitations? Here's a summary of how to find the JDK installation path.1:echo $JAVA _homeIf you use $java_home, you can locate the installation path of the JDK as long as the environment variable $java_home is configured, otherwise the installation path of the JDK is not located at all.[Email protected] ~]# java-versionJava Version "1.7.0_65"
How to view the JDK installation path in Linux
On a Linux server, how does one find the JDK installation path? Which of the following methods can be used to find the JDK installation path? Are there some limitations? The following describes how to find the JDK installation path.
1: echo $ JAVA_HOME
If you use $ JAVA_HOME, you must configure the environment variable $ JAVA_HOME to locate the JDK installation path. Otherwise, the JDK installation path cannot be found as follows.
[Root @ localhost
How do I find the JDK installation path on a Linux server? Are there ways to find the installation path for locating the JDK? Are there some limitations? Here's a summary of how to find the JDK installation path.1:echo $JAVA _homeIf you use $java_home, you can locate the installation path of the JDK as long as the environment variable $java_home is configured, otherwise the installation path of the JDK is not located at all.[Email protected] ~]# java-versionJava Version "1.7.0_65"
- Java database (JDBC) driver for PostgreSQL (documentation)mauve - free test suite for the Java Class librariesjde - JDEE, Java Development Environment for Emacs(en)fakeroot-ng - Gives a fake root environmentfreemind - Java Program for creating and viewing Mindmapsgcj-4.5-jdk - gcj and classpath development tools for Java(TM)japitools - Java API compatibility testing toolsjava3ds-fileloader - Java3D 3DS File Loaderjtreg - Regression Test Harness for the Op
Installing java1.8Updating the source package #yum Update server#rpm-qa |grep-e ' ^open[jre|jdk]|j[re|dk] ' search for any version of installed JDK componentsJava-1.8.0-openjdk-headless-1.8.0.60-2.b27.el7_1.x86_64Pygobject2-2.28.6-11.el7.x86_64Pygobject3-base-3.8.2-6.el7.x86_64Java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64Openjpeg-libs-1.5.1-10.el7.x86_64Gobject-introspection-1.36.0-4.el7.x86_64#java-versio
[Root @ localhost usr] # yum install javaLoaded plugins: fastestmirror, refresh-packagekit, securityRepository base is listed more than once in the configurationRepository updates is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository centosplus is listed more than once in the configurationRepository contrib is listed more than once in the configurationLoading mirror speeds from cached hostfile* Base: mirrors.btte.net* Extras: mirro
Environment (build 1.7.0_79-b15)Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Method 2: Install JDK with yum
1. Check which jdk versions are available in the yum Library (only openjdk is found currently)
[root@localhost ~]# yum search java|grep jdkldapjdk-javadoc.x86_64 : Javadoc for ldapjdkjava-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environmentjava-1.6.0-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.