CentOS 6.X and 5.X are OPENJDK Runtime Environment (OPENJDK). It is an Open-source Java platform on Linux. CentOS Yum command to install the Java SDK openjdk
CentOS Linux JAVA (OPENJDK) package name1.JAVA-1.7.0-OPENJDK-
This is an installation record. I have browsed many articles on solr installation and configuration before and when I encountered problems. Thanks to all the authors for sharing them. It was found that Solr 4.3.0 was installed on Ubuntu 12.04 + OpenJDK 1.7, which is somewhat different from the existing articles on the Internet.
Install Ubuntu 12.04-after basic installation, only
OpenJDK Java 8 has been made to official Ubuntu repositories for 14.10 Utopic and higher. For Ubuntu 14.04, Ubuntu 12.04, and Linux Mint all users here's how to install it from PPA (Personal pakage Archives) Personal Package Archive It is a service provided by Ubuntu Launchpad website that allows individual users to upload software source code, compile it via Launchpad and publish it as a 2 software package
In linux, uninstall openjdk, install sunjdk, and configure environment variables. Generally, openjdk is installed in linux. However, in development, you must use sunjdk. In this case, you can only uninstall openjdk and install sunjdk. 1. query the existing installation versi
Install the official JDK under Fedora 20 to replace OpenJDK and configure environment variables.
Fedora 20 comes with OpenJDK, So if you install the official JDK, you must first Delete OpenJDK as follows:
1: run the rpm-qa | grep jdk command to check the current jdk status
Ubuntu delete openjdk install SunJDK1. download the installation package to the official website: jdk-7-linux-i586.tar.gz2. create the installation directory: sudomkdir/usr/lib/jvm3. decompress: tarzxvf. /jdk-7-linux-i586.tar.gz-C/usr/lib/jvm4. set the environment variable :... ubuntu delete openjdk install Sun JDK 1.
View the current system JDK: rpm-Qa | grep JDK
Result: [Root @ dc-01 Java] # rpm-Qa | grep JDK
Java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.i686
Detach:
[Root @ dc-01 Java] # Yum-y remove java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.i686
Wait for a while to complete.
Download Sun's JDK. I downloaded
Jdk-6u37-linux-i586-rpm.bin
For a 64-bit system, download:
Jdk-6u37-linux-x64-rpm.bin
1. Uninstall openjdkView the current system's JDK: rpm-Qa | grep JDK (I found here: java-1.6.0-openjdk-1.6.0.0-1.43.1.10.6.el6_2.i686), if not found, you can use rpm-Qa | grep gcj
Remove the built-in JDK: Yum-y remove java-1.6.0-openjdk-1.6.0.0-1.43.1.10.6.el6_2.i686 ,:
2. Install Sun JDKSince I downloaded jdk-7-linux-i586.tar.gz, You can unzip it directly in th
First of all, in the high fedora, there is no java-openjdk-1.6 package that needs to be downloaded online, such as CentOS java-openjdk-1.6 package in 7: java-1.6.0-openjdk-1.6.0.36-1.13.8.1.el7_1.x86_64.rpm, measured can be installed in Fedora 20.
The following is reproduced, the main note installation prompts "Java-1.7.0-ope
now showing the status of not installed. At this point, openjdk all uninstall completeTwo installing the Sun JDK(1) Download the RPM package for the JDK and install it:[[emailprotected]src]#lsapache-tomcat-h5.zipnginx-1.4.7.tar.gz Pcre-8.36.tar.gzjdk-7u71-linux-x64.rpmnginx_upstream_ Hash-0.3.1.tar.gzkeepalived-1.2.2.tar.gzngx_cache_purge-2.0.tar.gz[[emailprotected]src ]#rpm-ivhjdk-7u71-linux-x64.rpmprepa
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
Compile and install openjdk in CentOS5.5
1. Uninstall the original jdk OF THE SYSTEM
Rpm-qa | grep java
Yum-y remove XXXX -- XXXX is the jdk information found by the first command.
II. The following dependency packages can be installed through yum
Yum-y install alsa-lib-develYum-y install cups-develYum-y
/ftconfig. h \/Usr/local/include/freetype2/freetype/config/ftconfig. h
Run the following command:
Mkdir-p/usr/local/include/freetype2/freetype/internal
Reinstall
./Configure make install
4. install ant
The version used this time is: apache-ant-1.9.4-bin.zip
Unzip apache-ant-1.9.4-bin.zip
Ln-s decompressed ant directory/bin/ant/usr/bin/ant
5. install JDK and co
Debian (Wheezy) install Java environment/replace OpenJDK with SUN JDK
Debian (Wheezy) install Java environment/replace OpenJDK with SUN JDK
Because the project needs to install the Java environment on the machine.
1, go to the http://www.Oracle.com/technetwork/java/javase/do
Installing JDK SE1.8 with CentOS
The Yum are usually installed through the OpenJDK
Typically used when developing on a Windows platform is SUNJDK
To avoid possible problems, uninstall your own OPENJDK installation SUNJDK
View the OPENJDK version first
Yum List installed |grep Java
Yum-y Remove java-1.6.0-openjdk.x86_64 Delete
path=Execute the following command to make the configuration effectiveSource/etc/profileNote: path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" must be retained, Doing so will cause the system not to log in. You can also use another two configurations instead of the line configuration:5. How to unload your own OPENJDK:
sudo apt-get remove openjdk*
Fedora 20 comes with openjdk, so if you install the official JDK, remove OPENJDK first, as follows:1:rpm-qa|grep jdk to view the current JDK situation.2:yum-y Remove Java java-1.7.0-openjdk* Uninstall OPENJDK, a process in which some additional software may be uninstalled fo
1. Uninstall the previous JDK and mark all options that contain openjdk in the new version to completely delete it. Or execute sudo apt-Get autoremove openjdk-6-jre 2, download JDK Software
Follow these steps to install Sun JDK:
Slave.
Then configure the Java environment variable:
Set environment variables: Vim/etc/profile or Vim ~ /. Bashrc, add:
Export java_
Fedora 20 comes with OpenJDK, So if you install the official JDK, you must first Delete OpenJDK as follows:
1: run the rpm-qa | grep jdk command to check the current jdk status.
2: yum-y remove java java-1.7.0-openjdk * uninstall openjdk, which may uninstall some additiona
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.