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
need to configure the environment.
Install JDK
1. decompress the file
$ sudo tar zxvf jdk-7u21-linux-i586.tar.gz2. Add the environment variable $ sudo vim ~ /. Bashrc (or use NotePad to open: gedit ~ /. Bashrc) Add the following content:
export JAVA_HOME=/usr/lib/jvm/java export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH
Change java_home to your own folder. 3. configure the default JDK version sudo update-
Ubuntun software installation, Basic Environment configuration steps, ubuntun steps
I have previously re-installed the inittun system. To sum up this, it may be used in the future.
Operating system version: ubtun12.04Skype installation:Sudo add-apt-repository "deb http://archive.canonical.com $ (lsb_release-SC) partner"Sudo apt-get updateSudo apt-get install skypeGit installation:Sudo apt-get install gitSudo apt-get install git-coreRepo Configuration:Mkdir binPATH = ~ /Bin: $ PATHChmod a + x ~ /
to the pulse-access group: usermod-a-G pulse-access root
2. start pulseaudio: pulseaudio -- start -- log-target = syslog
Ii. Configure JDK1. Move the downloaded jdk-7u17-linux-i586.tar.gz to the installation directory/usr2. Switch to the/usr Directory: cd/usr, unzip jdk: sudo tar-zxvf jdk-7u17-linux-i586.tar.gz3. Configure the environment variable sudo gedit/etc/profile like Windows. Add the following statement at the end of the file (confirm your path ):
Export JAVA_HOME =/usr/jdk1.7.0 _ 17Exp
) 64-Bit Server VM (build 25.20-b23, mixed mode)
If openjdk has been installed in the system, follow these steps to update it:Www.bkjia.com @ bkjia :~ $ Sudo update-alternatives -- install/usr/bin/java/usr/lib/jvm/jdk1.8.0 _ 20/bin/java 300Update-alternatives: using/usr/lib/jvm/jdk1.8.0 _ 20/bin/java to provide/usr/bin/java (java) in auto modeWww.bkjia.com @ bkjia :~ $ Sudo update-
The JDK is a popular development toolkit that contains the JRE that is the component that supports the JVM running.01. JDK Downloadhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html02. JDK DecompressionTar zxf jdk-8u131-linux-x64.tar.gz03, the configuration of the JDK environment variable
A configuration file/etc/profile (global level) that modifies environment variables directly. bash_profile (user-level)
Vim/etc/profileexport java_home=/elk5.4/jdk
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.