program runs, of course, can not find the corresponding class. The company compiled server is actually configured with multiple JDK versions, and Android compilation is the JDK version set when setting environment variables.Compiling android4.4 uses jdk1.6, and compiling android5.0 uses jdk1.7, which involves switching the JDK version at any time. First to see how to set the JDK environment variables, Baidu Search to get the answer is to modify the ~/.BASHRC or modify the/etc/profile file to co
://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
You can download the latest version of the JDK.
2. Unpack first
sudo tar zxvf./jdk-8u72-linux-x64.tar.gz
Then use MV to move to the directory you want to reach, such as:
MV jdk1.8.0_72 * * * * * (target location)
3. Setting Environment variables
Edit the. bashrc file.
Enter the following command at the terminal:
Vim ~/.BASHRC
At the end of the file, add the following lines of code:
Export JAVA_HOME=XXX (JDK install
If there is more than one Java version installed (sometimes some software installed itself), how to easily switch it. In addition to the common settings environment variables, today learned a new way to switch:Update-alternatives--config JavaUpdate-alternatives--config JavacAlso, how to install your own Java version:sudo update-alternatives--install/usr/bin/java
kinds of links: Hard link (hard link) and soft link (also known as symbolic link, that is, soft link or symbolic link). Links for Linux systems to solve the shared use of files, but also brings the hidden file path, increase the security of permissions and save storage, and other benefits. If an inode number corresponds to multiple file names, these files are referred to as hard links. In other words, a hard link is one file that uses multiple aliases (the following figure hard link is an alias
You can use the LS command to see that Python binaries are available in your system as follows.
$ ls/usr/bin/python*
/usr/bin/python/usr/bin/python2/usr/bin/python2.7/usr/bin/python3/usr/bin/python3.4/ usr/bin/python3.4m/usr/bin/python3m
Perform the following command to view the default Python version information:
$ python--version
python 2.7.8
1. Modify Python version based on User:
To modify the Python version for a particular user, simply create an alias (alias) und
tar.gz package for the corresponding JDK, and put it in:/var/cache/oracle-jdk7-installer (JDK7)/var/cache/oracle-jdk8-installer (JDK8)Below, and then install the installer once. Installer will use the TAR.GZ package you downloaded by default3. Set the system default JDKJDk7sudo update-java-alternatives-s java-7-oracleJDK8sudo update-java-alternatives-s java-8-oracleIf the JDK7 is installed and the JDK8 is
. After the installation is complete, verify that[Email protected] ~]# java-"1.6.0_37"1.13. 9) (rhel-1.13. 9.4. el5_11-23.25-b01, Mixed mode)4. The path to the default installation via Yum is/usr/lib/jvm[Email protected] ~]# cd/usr/lib/Jvm[[email protected] jvm]# lltotal -drwxr-xr-x3Root root4096Jan A -: onjava-1.6.0-openjdk-1.6.0.37. x86_64lrwxrwxrwx1Root root +Jan A -: onJRE-/etc/alternatives/jrelrwxrwxrwx1Root root -Jan A -: onjre-1.6.0/etc/
It has been installed several times before, but each time you need to install again and have to re-search the tutorial, to record their own to avoid forgetting.Install JDK DownloadDownload: Click to open the link, I downloaded the filename is jdk-8u66-linux-x64.tar.gzUnzip the installationI'm going to install it under/opt/jvm/.First extract, TAR-ZXVF jdk-8u66-linux-x64.tar.gz, get jdk1.8.0_66Rename and move to/OPT/JVM,mv jdk1.8.0_66/jdk1.8/ mv jdk1.8.0_66//opt/jvm/Setting Environment Variablese
In Ubuntu, if you have more than one Java version installed (sometimes some software installs itself), how can you easily switch? In addition to the common settings environment variables, today learned a new way to switch:Update-alternatives--config JavaUpdate-alternatives--config JavacAlso, how to install your own Java version:sudo update-alternatives--install/u
When you install Debian Linux, the installation process may also provide you with multiple Python versions available, so there will be multiple Python executable binaries in the system. You can use the LS command to see that Python binaries are available in your system as follows.
$ ls/usr/bin/python*
/usr/bin/python /usr/bin/python2 /usr/bin/python2.7 /usr/bin/python3 / usr/bin/python3.4 /usr/bin/python3.4m /usr/bin/python3m
Perform the following command to view the default Python vers
Create a Python development environment in Ubuntu13.10: Step 1 install JDK (to install ECLIPSEIDE) decompress the installation package and set JDK. The update-alternatives -- install option feature adds a new set of system command links. Tar-zxvfjdk-7u45-linux-x64.tar.gzsudomkdir-p/usr/lib/jvmsudomv./j
Build a Python development environment in Ubuntu 13.10:
Step 1 install JDK (to install eclipse ide)
Decompress the installation package and set JDK.
Th
/controlpanelIcon =/usr/lib/Java/JRE/plugin/desktop/sun_java.pngTerminal = 0Type = ApplicationCategories = application; settings; X-sun-supported; X-red-hat-base;
In this way, you can start the Java console through the menu...
3. Use alternatives to run all Java commands, man, and plugin.Finally, create a link for the command under JDK bin, install the plug-in for Mozilla, and create a shell file with the following content:
#! /Bin/bash
+ F7 to return to the desktop.Another point is that when you configure the environment, do not leave spaces between the Environment name and the corresponding environment path, such as JAVA_HOME =/opt/jdk1.7.0 _ 45 "=" on both sides, which should be unrecognized by bash.4. Because ubuntu comes with the JVM Implementation of gij, the following information is displayed when you type "java-version" on the terminal: java version "1.6.0. This means that the JVM implementation is already available in
ubuntu16.04 python2.7 and python3.5 are installed by default. This tutorial uses python3.5The first step: Modify the default ubuntu16.04 Python2 to use Python3 by default.sudo update-alternatives--install/usr/bin/python python/usr/bin/python2 100sudo update-alternatives--install/usr/ Bin/python Python/usr/bin/python3 150Running the above code will modify ubuntu16.04 by default using Python2 to use Python3 b
reasons, you can interrupt the operation. Then download the tar.gz package for the corresponding JDK, and put it in:/var/cache/oracle-jdk7-installer (JDK7)/var/cache/oracle-jdk8-installer (JDK8)Below, and then install the installer once. Installer will use the TAR.GZ package you downloaded by default3. Set the system default JDKJDk7sudo update-java-alternatives-s java-7-oracleJDK8sudo update-java-alternatives
1, download the installation package, CD to the directory where the filessudo dpkg-i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb2. View GCC installed to the systemls/usr/bin/gcc*3.After downloading the package, it is recommended to install it directly with sudo dkpg-i *.debBecause GCC installs with each other version of support, there are very frustrating order requirements, as if the installation system will automatically arrange the order of installation, more convenient
reasons, you can interrupt the operation. Then download the tar.gz package for the corresponding JDK, and put it in:/var/cache/oracle-jdk7-installer (JDK7)/var/cache/oracle-jdk8-installer (JDK8)Below, and then install the installer once. Installer will use the TAR.GZ package you downloaded by default3. Set the system default JDKJDk7sudo update-java-alternatives-s java-7-oracleJDK8sudo update-java-alternatives
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.