in the configuration Hadoop is, in the format of Hadoop, there is no JDK found I used CENTOS7 is 64 bit, found that the machine has Java, looked for its location found the JDK-1.7.0_75which java[[email protected] Hadoop-1.1.2]# which Java/usr/bin/Java[[email protected] Hadoop-1.1.2]# ls/usr/bin/Java/usr/bin/Java[[email protected] Hadoop-1.1.2]# ls-l/usr/bin/javalrwxrwxrwx.1Root root AJune - Geneva:xx/usr/bin/java-/etc/alternatives/Java[[email protecte
安装环境:ubuntu14.04。JDK不只Oracle一家,但出于习惯问题,我还是选择安装Oracle的JDK。安装方法有两种,一种是通过ppa安装自动配置环境,另一种是下载压缩包解压后自己配置环境。第一种方法比较省事,只是有一个前提:必须上网。第二种方法稍微麻烦一些,有些像在Windows的安装配置。1 Installing using the PPA source method1.1 Adding PPAsudo add-apt-repository Ppa:webupd8team/javasudo apt-get update1.2 Installing Oracle-java-installersudo apt-get install Oracle-java8-installerThe installer will prompt you to agree to Oracle's terms of service, select OK, and then select Yes (note that you want to use the keyboard.) )。1.3 Set
Android L recommended using the JDK7 compiler, which is the natural evolution of the law, just like 4 years ago to compile Android 1.6 needs to use JDK5.Multiple versions of the JDK can coexist, and you can switch them at any time using the Update-alternatives tool. The procedures for installing OPENJDK and Oracle JDK (Sun) and switching versions are described below.First, install the OPENJDK7$ sudo apt-get update$ sudo apt-get install OPENJDK-7-JDKLo
/downloading.htmlCompile Reference 3: http://source.android.com/source/building.htmlCompile reference 4: http://source.android.com/source/building-devices.htmlNext we will summarize the download and compilation process of the android source code on ubuntu 10.10. The official documents are detailed. This article focuses on summary and supplement. If you still have any questions, please refer to the official webpage or leave a message.I. Initial Environment Construction1. Install JDKThe command fo
openjdk, the following work is required to set the installed JDK to the default JDK Version. Run the code: [plain] sudo update-alternatives -- install/usr/bin/java/usr/lib/jvm/java-7-sun/bin/java 300 sudo update-alternatives -- install/ usr/bin/javac/usr/lib/jvm/java-7-sun/bin/javac 300 sudo update-alternatives -- install/usr/bin/jar/usr/lib /jvm/java-7-sun/bin/
Install Java 10.04 Java 1.5 on Ubuntu 1.6
11:00:05 | category: Embedded Linux | font size subscription
Installing the JDK
The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK shoshould be used.
Java 6: For gingerbread and newer
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"$ sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partn
the/usr/local/Android directory to prepare for later Android installation. Decompress JDK here. Add the following content to the/etc/profile file:
Export java_home =/usr/local/Android/jdk1.6.0 _ 29Export Path = $ path: $ java_home/bin
Click source/etc/profile. Enter Java-version to check whether Java is installed successfully. Generally, if 1.6.0 _ 29 is displayed, the operation is successful. But the document also says to install javac and jar. I guess the reason may be that, even though Java
Install and configure JDK 7 in Ubuntu 11.04 Step 1: Download jdk-7-linux-i586.tar.gz [plain] wget-c http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz (Note: if the download fails, it is recommended to use thunder download, and then copy to the Linux system .) Step 2: unzip and install [plain] sudo tar zxvf. /jdk-7-linux-i586.tar.gz-C/usr/lib/jvm cd/usr/lib/jvm sudo mv jdk1.7.0/java-7-sun Step 3: Modify the environment variable [plain] vim ~ /. Add bashrc: www.2cto.com [plain]
. modify the file www.2cto.com 1 PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin: /usr/bin:/sbin:/bin:/usr/games: $ {JAVA_HOME}/bin "2JAVA_HOME =/opt/ja Va/jdk1.7.0 _ 073JRE_HOME =$ {JAVA_HOME}/jre4CLASSPATH =.: $ {JAVA_HOME}/lib: $ {JRE_HOME}/lib "3. reload bashrc1 After entering the preceding content, Press esc to exit the editing mode, move the cursor to the end, and enter ': wq! 'To save and exit. 3. Save and execute the following command to make it take effect immediately. 1 source ~ /. Ba
, you can use -- exclude to exclude specific files:
# grep -Ril --exclude=\*.conf bash /etc/*/etc/alternatives/view/etc/alternatives/vim/etc/alternatives/vi/etc/alternatives/vimdiff/etc/alternatives/rvim/etc/alternatives/ex/etc/
direct it to JDK 1.7.0 _ 51. You need to soft link that!
$ ln -s jdk1.7.0_51 currentjohn@ubuntu:Jdk$ lllrwxrwxrwx 1 john john 11 Feb 9 18:29 current -> jdk1.7.0_51/drwxr-xr-x 8 john john 4096 Mar 27 2013 jdk1.6.0_45/drwxr-xr-x 8 john john 4096 Feb 9 18:27 jdk1.7.0_51/
Configure Environment Variables
1. Modify system-level environment variables
$ sudo vim /etc/environment
2. Add the following content and modify it according to your own situation.
JAVA_HOME="/home/john/Develop
Switch gcc, g ++, and gfortran versions in ubuntuStep 1: use which gcc, which g ++, and which gfortran to view the location. My result is/usr/bin/gcc; /usr/bin/g ++ and/usr/bin/gfortran Part 2: first, let's take a look at the gcc commands installed on Ubuntu: ls/usr/bin/gcc *-l; gcc/g ++ in ubuntu 12.04 is 4.6, we downgrade the default system to 4.4 $ sudo apt-get install gcc-4.4 $ sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gcc-4.4 40 (he
Due to developer issues, sun's JVM is difficult to install and configure on Fedora Linux. Here we are talking about Sun's JVM (andJDK) Is the official implementation version, not other reference implementation. Here I will teach you how to easilyFedoraLinux16 install aboveJDK7. The detailed steps are as follows:
1. Download JDK
Download the appropriate version, specifically 32-bit or 64-bit. Skip the table and directly go to the installation step.
Ii. Installation
2.1 Modify permissions
chmo
several services that can provide java. Although Java 6 is installed, the path has not been changed, System We still use the old path, so we will find that the version is incorrect during Android editing.Modify the example (replace alternatives with update-alternatives in Ubuntu ):[Root @ vostro ~] # Alternatives -- config JavaThere are 3 programs which provide
}/JRE3Export classpath =. :$ {java_home}/lib :$ {jre_home}/lib4Export path =$ {java_home}/bin: $ pathNote: Please note that you do not need to enter it urgently after running. You must press the letter I to enter the editing mode before moving the cursor input.After entering the preceding content, Press ESC to exit the editing mode, move the cursor to the end, and enter ': WQ! 'To save and exit.3. Save and execute the following command to make it take effect immediately1Source ~ /. Bashrc4. Conf
First step: Using which gcc, which g++, and which gfortran to view the location, my display results are:/usr/bin/gcc;/usr/bin/g++ and/usr/bin/gfortranPart Two: First, take a look at what version of GCC you have installed in your Ubuntu command: ls/usr/bin/gcc*-L;The gcc/g++ in Ubuntu 12.04 are all 4.6, and we downgrade the system to 4.4 by default.$sudo Apt-get Install gcc-4.4$sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.4 40(Here "
Download eclipse-cpp-neon-2-linux-gtk-x86_ from Http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/neon2 64.tar.gz, unzip and install to directory/opt/, run/opt/eclipse/eclipse, error:It looks like Java 1.8 is needed.To view the Java version:$ java-versionJava Version "1.7.0_111"OpenJDK Runtime Environment (IcedTea 2.6.7) (7U111-2.6.7-2~DEB8U1)OpenJDK 64-bit Server VM (build 24.111-b01, Mixed mode)Find out where the Java command is:$ which Java/usr/bin/java$ Ll/usr/bin/javalrwxr
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.