/downloads/ java-archive-downloads-javase6-419409.html, select Java SE development Kit 6u45, and then click Accept on the newly opened pageAccept License Agreement". After acceptance. Select "Jdk-6u45-linux-x64.bin" to download. Assuming you are not logged in, the system will first go to the login page and enter your username and password on the Oracle site. Step three: Install Oracle JDK(1) Create Java folder $ sudo mkdir-p/usr/local/java copy your downloaded Jdk-6u45-linux-x64.bin to/usr/local
1. Go to Oracle official website: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Download JDK version, such as: jdk-8u171-linux-x64.tar.gz2. Sudo tar-zxf jdk-8u171-linux-x64.tar.gz/usr/local, unzip the JDK into/usr/local3. Set environment variables to add the following environment variables in. ZSHRC (zsh) or/etc/profile (bash):Export java_home=/usr/local/jdk1.8.0_171Export Jre_home= $JAVA _home/jreExport classpath=.: $JAVA _home/lib: $JRE _home/libExport pat
there is openjdk, so, in order to make the default use of the JDK we installed, but also to do the following work.Perform:sudo update-alternatives--install/usr/bin/java Java ~/abc/jdk1.6.0_45/bin/java 300sudo update-alternatives--install/usr/bin/javac javac ~/abc/jdk1.6.0_45/bin/javac 300This step adds our installed JDK to the Java menu.Then execute:sudo update-alterna
The default GCC version in Ubuntu 12.04 is 4.6. But this version will be on the road when compiling Android 4.0 source code, the following is the method of installing and setting up GCC4.4.The first method:Install GCC 4.4First, install GCC 4.4 (and friends):apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilibSet 4.4 To is the defaultThen set 4.4 to is higher priority than 4.6:update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4
Install Hadoop in Linux (pseudo distribution mode) before writing: when installing Hadoop in Linux, pay attention to permission issues and grant hadoop permissions to non-root users. This article does not cover how to create a new user in Linux. Step 1: Install JDK1. download java. sun. com2. decompress the tar.gz file tar-xzvf jdk-7u17-linux-x64.tar.gz3. move the extracted folder to the/usr/local/jdk-1.7 directory mv/usr/local/src/jdk1.7.0 _ 17/usr/local/jdk-1.74. modify profilevi/etc/profile a
Install JDK 1.6 in Ubuntu and set it to the default JDK 1. download the Liunx JDK in Windows, my jdk-6u43-linux-i586.bin2. upload JDK to Ubuntu3. manually install JDK through secureCRT (I installed under/usr/local/bin/jdk1.6.0 _ 43): First modify the permission sudo chmod u + x jdk-6u43-linux-i586.bin to install sudo-s. /jdk-6u43-linux-i586.bin4. configure the environment variable to open the profile file sudo nano/etc/profile and add # author ylchou # date 2013-06-23export JAVA_HOME =/usr/local
Ubuntu uses different versions of gccubuntu system different versions have different gcc, such as ubuntu10.04 default gcc version is gcc-4.4.1, ubuntu10.10gcc default version is gcc-4.4.5. but in actual use, because of cross-compilation or other specific requirements, we...
Ubuntu uses gcc of different versionsDifferent versions of ubuntu have different gcc, such as ubuntu 10.04 default gcc version is gcc-4.4.1, ubuntu 10.10gcc default version is gcc-4.4.5.However, in actual use, we want to use
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. create the installation directory: sudo mkdir/usr/lib/jvm3. decompress: tar zxvf. /jdk-7-linux-
Ubuntu14.04 install JDK and ubuntu14.04jdk
Download from Sun's official website
Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Select accept license, and then select JDK download suitable for your model.
Decompress the file and modify the file name.
sudo mkdir /usr/lib/jvmsudo tar zxvf jdk-8u11-linux-i586.tar.gz -C /usr/lib/jvmcd /usr/lib/jvmsudo mv jdk1.8.0_11 java
Add Environment Variables
sudo vim ~/.bashrc
Add the following content
export JAVA_HOME=/usr
the online search error occurred because the Linux system is not the default point to the JDK version of the installation , so, to view the next[email protected] ~]# which Java/usr/bin/java[email protected] ~]# ls/usr/bin/java-llrwxrwxrwx. 1 root root 22 September 11:37/usr/bin/java-/etc/alternatives/java[email protected] ~]# Ll/etc/alternatives/javalrwxrwxrwx. 1 root root 35 September 11:37/etc/
JVM and rename them to the Java folder$ sudo MKDIR/USR/LIB/JVM$ sudo tar zxvf jdk-8u25-linux-i586.tar.gz-c/USR/LIB/JVM$ CD/USR/LIB/JVM$ sudo mv jdk1.8.0_25 Java2. Add an environment variable (~ represents the root directory of the current user)$ sudo vi ~/.BASHRCAdd the following environment variable configuration content in the tail line:Export Java_home=/usr/lib/jvm/javaExport JRE_HOME=${JAVA_HOME}/JREExport Classpath=.:${java_home}/lib:${jre_home}/libExport Path=${java_home}/bin: $PATH3. Con
Compile android source code 3 --- install JDK 6 on ubuntuFor Android 2.3 and later versions, JDK 6, that is, JDK 1.6, must be used instead of copying files to/urs/lib/jvm.
Cd download
Sudo su
Sudo cp jdk-6u45-linux-x64.bin/usr/lib/jvm2. jdk-6u45-linux-x64.bin File Installation
# Chmod 777 jdk-6u45-linux-x64.bin grants the current user permission to execute#. Jdk-6u45-linux-x64.bin.bin3. Change the environment variable 4. Configure the default JDK version
Sudo update-
The linux server's java environment has been tampered with and repaired.
I recently installed ant on the server. To facilitate the direct installation of yum install ant, I suggest installing ant with ant-bin package after pressurization to install many dependent packages, such as java environment, configure the environment in the/etc/profile file. The following describes how to fix java environment tampering:
1. Check the java version and environment currently in use (the local configuration
The second day of contact with hadoop, it took two days to configure hadoop to the environment. I wrote my own configuration process here, hoping to help you!
I have shared all the resources used in this article here. Click here to download them. You don't need to find them one by one!
This includes the "Hadoop technology insider" book. The first chapter describes the configuration process, but it is not detailed ~
--------------- Install jdk -------------------------------1.
Download jdk1.6.0
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.