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
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-DEVEL.X86_64:OPENJDK Development environmentJAVA-1.6
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 jdkldapjdk-javadoc.x86_64 : Javadoc for ldapjdkjava-1.6.0-openjdk.x86_64 :
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 LDAPJDKJAVA-1.6.0-OPENJDK.X86_64:OPENJDK Runtime
Because of the different Linux developers, so different developers of Linux version operation details are not the same, today, the installation of CentOS under the JDK:Method One: Manually unzip the JDK's tarball and set the environment variable1. Create a Java directory under the/usr/directorymkdir/usr/~]# Cd/usr/java2. Download the JDK, then unzip[Email protected] java]# Curl-o http://tar -zxvf jdk-7u79-linux-x64. tar. gz3. Setting Environment variablesVI /etc/profileIn profile, add the follow
] 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 LDAPJDKJAVA-1.6.0-OPENJDK.X86_64:OPENJDK Runtime Environmen
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"
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"
recent version KitKat or Oracle Java 6来 compiled, so you need to download the installation OpenJDK 7Java 7:for The latest version of Android$ sudo apt-get update$ sudo apt-get install openjdk-7-jdkOptionally, update the default Java version by running:$ sudo update-alternatives --config java$ sudo update-alternatives --config javacCompile: I used the armv7-a-neo
source code needs OPENJDK to compile. The recent version number KitKat or Oracle Java 6来 compiled, so you need to download the installation OpenJDK 7Java 7:for The latest version of Android$ sudo apt-get update$ sudo apt-get install openjdk-7-jdkOptionally, update the default Java version by running:$ sudo update-alternatives --config java$ sudo update-alternati
iOS armv7
(1) copy the new downloaded ffmpeg to the ffmpeg-iPhone-build directory, renamed as ffmpeg-armv7
(2) Use textedit to open the comments of the build-armv7 file # svnco-r22403 SVN: // svn.ffmpeg.org/ffmpeg/trunk $ ffmpeg_dir this line
(3) add -- disable-ASM -- enable-Cross-compile in configure_options.
(4) change./configure:
./configure --cc=/Application
Platform:wind7_64 + ubuntu12_04_64 + VMwareHere take Android5.0 as an example:Android5.0 can be downloaded here:Android-5.0.tar.gz115 Network Tray Gift Pack code: 5LBD7CRTK1WZHttp://115.com/lb/5lbd7crtk1wzLinux_source_goldfish can be downloaded here:Android5.0 compilation can be referenced by:Problems encounteredHttp://www.cnblogs.com/pengdonglin137/p/4197969.htmlNeed to use OPENJDK7apt-get install openjdk-7-jdkapt-get install
Platform:wind7_64 + ubuntu12_04_64 + VMwareHere take Android5.0 as an example:Android5.0 can be downloaded here:115 Network Tray Gift Pack code: 5LBD7CRTK1WZHttp://115.com/lb/5lbd7crtk1wzLinux_source_goldfish can be downloaded here:115 Network Tray Gift Pack code: 5lbd76rru5orHttp://115.com/lb/5lbd76rru5orAndroid5.0 compilation can be referenced by:Problems encounteredHttp://www.cnblogs.com/pengdonglin137/p/4197969.htmlNeed to use OPENJDK7apt-get install ope
Android Linux kernel compilation and androidlinux Kernel
Platform:
Wind7_64 + Ubuntu12_04_64 + VMware
Here we use Android5.0 as an example:
Android5.0 can be downloaded here:
Android-5.0.tar.gz115 online storage package code: 5lbd7crtk1wzHttp://115.com/lb/5lbd7crtk1wz
Linux_source_goldfish can be downloaded here:
Linux_source_goldfish.tar.gz115 online storage package code: 5lbd76rru5orHttp://115.com/lb/5lbd76rru5or
For Android5.0 compilation, refer:
Problems encountered
Http://www.cnblogs.co
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.