We know that openjdk may be installed in Ubuntu in advance. However, I am used to Oraclejdk. ## Lt; uninstall openjdk gt; ### Terminalcommand: sudoapt-getpurgeopenjdk/openjdk *; sudoapt-getclean/autoclean; we should delete openjdk from the system. # Lt; download and install O
We know that
Previously, the jdk of ubuntu was installed with the apt-get install command. The default installation is openjdk, and the path is/usr/lib/jvm /. If you need to switch or upgrade the java version, you can use update-alternatives. Of course, you can uninstall and reinstall it, or you can install it by setting environment variables. This section describes how to install update-alternatives.Since the development of Linux, there have been a lot of availab
Preface
The materials I read now are compiled by openjdk7, and openjdk8 seems to have been compiled by openjdk7 in a large way.
make sanity
Will prompt that the sanity rule cannot be found, and then the compilation process is basically direct
./configuremake all
The official readme statement is clear.
The following process is recorded:Download Code
hg clone http://hg.openjdk.java.net/jdk8u/jdk8u jdk8ucd jdk8u bash ./get_source.sh
Then download the code and enter the code directory:
cd jdk8uInsta
Step 1: Check whether the built-in JDK in Linux is installed (uninstall the JDK installed in centos)
The installed centos comes with openjdk and uses the Java-version command. The following information is displayed:
Java versionOpenjdk Runtime Environment (build 1.6.0-b09)Openjdk 64-bit server VM (build 1.6.0-b09, mixed mode)
It is best to uninstall openjdk
Install JAVA in CentOS 7 and in centos 7
Step 1: Check whether the built-in JDK of Linux is installed
The installed CentOS comes with OpenJdk and uses the java-version command. The following information is displayed:
Java version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
It is best to uninstall
. bashrc file:
Set JAVA_HOME =/usr/share/jdk1.7.0 _ 25
Export JAVA_HOME
Set PATH = $ JAVA_HOME/bin: $ PATH
Export PATH
Set CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export CLASSPATH
• Log on again
Use commands
Source ~ /. Bashrc
Make it take effect
3. directly set variables in shell
I am not in favor of using this method. If you change the shell, your settings will be invalid. Therefore, this method is only for temporary use and will be re-set later, which is tr
Install JDK, Tomcat, and MySQL basic software in Linux.
1. Install JDK
After Centos6.5 is installed, OpenJDK is installed by default for Base Server. You must first Delete OpenJDK.
1.1 view the previous jdk
Check whether openjdk has been installed before.
If you are not a root user, you need to switch to the root user (su-root)
Command: rpm-qa | grep java
It is s
First step: Check if the Linux-brought JDK is installed (uninstall CentOS installed 1.4)The installed CentOS will bring openjdk, with the command java-version, will have the following information:Java Version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)It is best to uninstall the
First step: Check if the Linux-brought JDK is installedThe installed CentOS will bring openjdk, with the command java-version, will have the following information:Java Version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)It is best to uninstall the OPENJDK be
1. First look at the OPENJDK installation package$ RPM-QA |grep javaTzdata-java-2013b-1.el6.noarchJava-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64Java-1.7.0-openjdk-1.7.0.19-2.3.9.1.el6_4.x86_642. Check the OPENJDK version$ java-versionJava Version "1.7.0_19"OpenJDK Runt
. It is worth noting that Eclipse Luna needs openjdk 7 operating environment, I use Ubuntu 12.04, the system comes with OPENJDK 6, need to install, and then change the Eclipse startup parameters ( If you have not modified the system's default Java Runtime Environment, add the following in the Eclipse.ini file in the Eclipse installation directory:-vm/usr/lib/jvm/java-1.7.0-
JDK6.0).JDK6.0 the root directory of the JDK (eg. C:\Java\jdk1.6.0_21) has a src.zip directory after the installation is complete. This directory can be extracted to another directory (eg. D:\amigo\study\ Technical essay \201405). Src.zip does not contain all JDK source code, such as the child package under Sun is not present in src.zip (eg. the sun.security package and its child packages used in this article are not included).To download these sub-packages, you need to download the source code
View Original JDK[Email protected] java]# Rpm-qa | grep JDKJava-1.7.0-openjdk-headless-1.7.0.91-2.6.2.3.el7.x86_64Java-1.8.0-openjdk-headless-1.8.0.65-3.b17.el7.x86_64Java-1.7.0-openjdk-1.7.0.91-2.6.2.3.el7.x86_64Java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64Uninstalling the original JDK[Email protected] java]# rpm-e--no
1. First look at the OPENJDK installation package$ RPM-QA |grep javaTzdata-java-2013b-1.el6.noarchJava-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64Java-1.7.0-openjdk-1.7.0.19-2.3.9.1.el6_4.x86_642. Check the OPENJDK version number$ java-versionJava Version "1.7.0_19"OpenJDK
Install multiple JDK versions under Linux
NOV 21ST, 2014 | COMMENTS
4.4 (KitKat) has been used before the SunJDK1.6 version of the original compiled, to 4.4, began to compile with the SunJDK1.7 version, from the Android L start to the current 5.0 Google started to use OPENJDK to compile. So on a computer to do the source code compilation needs to install multiple versions of the JDK.
The system I'm using now is LinuxMint17, based on Ubuntu 14.04.
Now
we choose jdk1.8.0_65.
In the native environment, the default is actually installed OPENJDK, and the environment of each machine is disorderly seven or eight slots, so before installing the Java environment I put the default OPENJDK environment to kill.
1.1 Uninstalling OpenJDK
#java-version found the OPENJDK environm
0. IntroductionJava's status and importance, as we all know, a lot of software is dependent on the JDK, there are many options for installing Java on Ubuntu, Openjdk,oracle Jdk ...1. Install default JRE/JDK (optional)This is the simplest way to first update the package index:sudo apt-get updateCheck to see if Java is installed on the current machine:Java-versionIf you see "The program Java can is found in the following packages", which means that Java
1. This tutorial resolves the possibility of entering ADB in the command or prompting for errors after you have configured the environment variables for the Android SDK. Now provide you with the latest solution, this method can also solve the latest CentOS 6.5 version2. This tutorial supports the latest java8, and this is an example.Tools/Materials
Java8:http://www.oracle.com/technetwork/java/javase/downloads/index.html
Note: Ubuntu selected tar.gz suffix; CentOS Select RMP suffix
1. first go to the http://download.java.net/openjdk/jdk7/ to download the openjdk7 source code zip package2. Install the compilation ToolkitIf aptitude is not installed, install Aptitude (SUDOApt-Get install aptitude)Sudo aptitude build-dep openjdk-63. Note: the language of the Ubuntu system must be switched to English (system settings-> language support)4. Modify the MAKEFILE file in hotspot/make/Linux and
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.