After centos is installed, it comes with openjdk and uses commands.Java-version, 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 openjdk first and install the JDK of sun.
View
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/
Or add a repository next week:
Sudo add-Apt-repository PPA: ferramrobert to/JavaSudo apt-Get updateSudo apt-Get install sun-java6-jdk sun-java6-plugin
Then, unzip and instal
Set OpenJDK environment variables in CentOSWhen I installed phpstorm today, I was prompted that I could not find JAVA_HOME, So I remembered that I had not installed JDK! Try openJDK on linux!Centos comes with OpenJDK's Runtime (JRE). In "Add/Delete", we can find JDK (OpenJDKDevelopmentEnvironment) and install it.After the installation, there are no system variables such as java_home, and you need to add the
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, as a new source of apt/for other users to d
This is a creation in
Article, where the information may have evolved or changed.
1.
When running Java application, the prompt cannot find Java_home, query java-version
[Jifeng@localhost bin]$ java-version
java Version "1.7.0_55"OpenJDK Runtime Environment (rhel-2.4.7.1.el6_5-x86_64 u55-b13)OpenJDK 64-bit Server VM (build 24.51-b03, Mixed mode)
Centos 6.5 comes with a
Download Page address:
Https://download.java.net/openjdk/jdk7
Or
Https://download.java.net/openjdk/jdk8
The following uses the jdk8 page as an example:
The copied address is as follows:
Http://www.java.net/download/Openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip
Replace the blacklist
Https:/
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
Anyone who has used Linux should know that in most Linux releases, JDK is installed either with built-in or through software sources. What is openjdk, what is the relationship and difference between it and Sun JDK?Historically, openjdk is an open source code version of JDK, which is released in the form of the GPL protocol. At jdk7, openjdk has become the backbon
In this article, we'll explain how to get started with the Hotspot Java Virtual Machine and its implementation in the OPENJDK open source project--we'll start with two aspects, namely, the interaction of virtual machines and virtual machines with Java class libraries.
Hotspot Source Introduction
Let's first look at the JDK source code and the implementation of the relevant Java concepts it contains. There are two main ways to check the source code:
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 version rpm-qa | grep jdk 2, uninstall openjdk sud
Because openjdk is not available for Hadoop development, it must be replaced with sun's jdk. Therefore, install sunjdk first: Add repositoryadd-apt-repository "debhttp: // archive.canonical.com/lucidpartner "Pay attention to the version and install sun-jdkapt-getupdateapt-getinstallsun-
Because openjdk is not available for Hadoop development, you must replace it with sun's jdk. Therefore, install sunjdk fir
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.
2: yum-y remove java java-1.7.0-openjdk *
1. View your own JDK version java-version2. View Rpm-qa | grep javaThe following information is displayed:java-1.4.2-gcj-compat-1.4.2.0-40jpp.115Java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5Unloading:RPM-E--nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115RPM-E--nodeps Java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5There are some other commands.Rpm-qa | grep GCJRpm-qa | grep JDKIf OpenJDK
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
Tags: ... remove encounters TPS Java Data command Technology PACDo not know why this twists and turns, a problem after one, if you also encounter problems, you can refer to the referenceQuestion 1:......has No installation andidate, resolved as follows (not understood):Reference Https://askubuntu.com/questions/763494/trying-to-install-openjdk-package-openjdk-7-jre-has-no-installation-candidateQuestion 2: Th
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. Solr4.3.0 was installed in Ubuntu12.04 + OpenJDK1.7, which is somewhat different from the existing articles on the Internet. Ubuntu12.04 installation-after basic installation, only install Openjdklinuxidc @ ubsolr :~ $ Sud
This is an installation record. I have browsed many articles on solr installation and configu
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. download the installation package to the official website: jdk-7-linux-i586.tar.gz2. creat
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.