installer because of a firewall or some other reason, you can interrupt the operation. then download the corresponding JDK tar.gz package, put in:
/var/cache/oracle-jdk7-installer (JDK7)
/var/cache/oracle-jdk8-installer (JDK8)
Below, and then install the installer once. Installer will default to use the tar.gz package you downloaded 3. Set system default JDK
JDk7
sudo update-java-alternatives-s java-7-oracle
JDK8
sudo update-java-
1: Installed through the PPA (source) mode.
2: Download the installation package through the official website.
1th is recommended here because the JDK upgrade can be easily obtained by Apt-get upgrade method. install using the ppa/source method Add PPA
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
Install Oracle-java-installer
Jdk7:
sudo apt-get install oracle-java7-installer
jdk8:
sudo apt-get install Oracle-java8-installer
The installer will prompt you to agree to Oracle
individual)If you cause installer to download slowly due to firewalls or other 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-or
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
Error:kernel launches from templates is not allowed in System files 1
error detected in the compilation of "/tmp/tmp Xft_00005657_00000000-10_math_functions.cpp4.ii ".
Workaround :
g++ version is too high in Ubuntu14.04, Ubuntu15.04 is normal
sudo apt-get install gcc-4.6 g++-4.6 gcc-4.6-multilib g++-4.6-multilib
sudo update-alternatives--remove-all gcc
sudo update-alternatives--remove-all g++
sudo upda
Phenomenon:---------------------------------[ERROR] Failure executing Javac, but could not parse the error:Javac:invalid Target release:1.8Usage:javac Use-help for a list of possible option---------------------------------The survey found that:[Email protected] ~]# java-versionOPENJDK Version "1.8.0_65"OpenJDK Runtime Environment (build 1.8.0_65-b17)OpenJDK 64-bit Server VM (build 25.65-b01, Mixed mode)[Email protected] ~]# javac-versionJavac 1.7.0_111that is, Java is inconsistent with the Javac
First, install the Java SE JKDA, download Http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=ocomen Select the latest version, the current latest version 1.8.0. Download jdk-8u45-linux-x64.tar.gz.B, unzip the download package, add environment variables.$ sudo vim ~/.BASHRCAdd at the end of the documentExport Java_home=/home/jeremy/jdk1.8.0export jre_home=${java_home}/jre export classpath=.:${java_home}/lib:${ Jre_home}/lib export Path=${java_home}/bin: $PATH It
-cookie "" http://download.oracle.com/otn-pub/java/jdk/8u111-b14/ jdk-8u111-linux-i586.tar.gz "# tar Xzf jdk-8u111-linux-i586.tar.gzNote: If Above wget command does not work for your watch this example video to download Java source archive using terminal.Install Java with alternativesAfter extracting archive file with Alternatives command to install it. Alternatives command is available in the chkconfig pac
Compile the Android 4.4.2 source code
In the previous article, I shared with you the process of downloading the android 4.4.2 source code in the sky (see the whole process of downloading the android4.4.2 source code (with the downloaded source code). Now I will write down the compilation notes.
Installing the JDK
The master branch of Android in the Android Open Source Project (AOSP) requires Java 7. On Ubuntu, use OpenJDK.
Java 7: For the latest version of Android
$ sudo apt-get update$ sudo
Build a Python development environment in Ubuntu 13.10:
Step 1 install JDK (to install eclipse ide)
Decompress the installation package and set JDK.
The update-alternatives -- install option feature adds a new set of system command links.
Tar-zxvf jdk-7u45-linux-x64.tar.gzSudo mkdir-p/usr/lib/jvmSudo mv./jdk1.7.0 _ 45/usr/lib/jvm/jdk1.7.0Sudo update-alternatives -- install "/usr/bin/java" "java" "/usr/lib/j
Practical Android skills: Switch JDK under Ubuntu
After Android L, we recommend that you use JDK 7 to compile the program. This is a natural development rule, just like compiling Android 1.6 4 years ago and using JDK 5.
Multi-version JDK can coexist. You only need to use the update-alternatives tool to switch between them at any time. The following describes how to install openjdk and oracle jdk (cannot cope with sun) and switch the version.1. Install
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.