/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
The process of compiling Android source code refer to the Android website:1, download the Android source code step: https://source.android.com/source/downloading.html2, compile the Android source code step: https://source.android.com/source/building-running.htmlHere are some of the problems I have encountered:1. JDK-related error when Compile Android Source:Error 1:target release 1.5 conflicts with default source release 1.7 Workaround: Best use JDK for 1.6.0.45 version error 2:[ Out/target/com
environment variables, not to list them one by one)Ubuntu may have a default JDK, such as openjdk. If openjdk is available, we need to perform the following work to make JDK installed by default. 3. Configure JDK software:
Code:Sudo Update-alternatives -- install/usr/bin/javac/usr/local/jdk1.6.0 _ 31/bin/javac 1071Sudo Update-alternatives -- install/usr/bin/Java/usr/local/jdk1.6.0 _ 31/bin/Java 1071Update-
of sun?
Google found that the original RedHat is far less troublesome than the win system. There is an alternative system (Alternatives System) mechanism in RedHat to abstract the locations and trademarks of different software or different versions of the same software, so as to eliminate the need to replace the environment. Update-alternatives is the implementation of this mechanism. Therefore, you can us
Finally, the complete implementation of C ++ 11 GCC 4.8.1.
Upgrade your system.
The following steps install gcc4.8.1 with content from: http://askubuntu.com/questions/312620/how-do-i-install-gcc-4-8-1-on-ubuntu-13-04
First install a software
apt-get install python-software-properties
Then
sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get updatesudo update-alternatives --remove-all gcc sudo update-al
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-s java-8-oracleIf the J
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 installed, to switch be
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
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/
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.