settings can be.
Ls-l--full-time/usr/java/jdk1.7.0_71 can see that the full installation time, the indication is really just installed.
[Root@localhost sss]#/usr/java/jdk1.7.0_71/bin/java-version
Java Version "1.7.0_71"
Java (TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot (TM) 64-bit Server VM (build 24.71-b01, Mixedmode)
As you can see, this Java is no longer an open JDK.
Ok.
Vi/etc/profile
Add at the end of the file
Export java_home=/usr/java/jdk1.7.0_71
Exportclasspath=.: $JA
1. Install NVIDIA Drive./nvidia-linux-x86_64-384.69.runNvidia-smi success indicates driver OK2. Installing CudaDpkg-i Cuda-repo-ubuntu1404-8-0-local-ga2_8.0.61-1_amd64.debApt-get UpdateApt-get Install CudaInstall PATCH2 (can also not be installed) Dpkg-i Cuda-repo-ubuntu1404-8-0-local-cublas-performance-update_8.0.61-1_amd64.deb3. Reduce the GCC version to less than 5.0 (ubuntu-14 not required because it is already gcc-4.8.4,ubuntu-16)sudo apt-get install g++-4.9sudo update-
,Then enter in the above type to search: Additional drivers Open "Additional drivers--additional Driver" and select the NVIDIA driver that matches your graphics card, and here I amUsing Nvidia binary drivers (375)Then choose Apply Changes, where the installation may fail, at which point you can continue to choose to apply the changes, install multiple timesWhen the installation is complete, select restart4. GCC down versionCUDA8.0 does not support GCC 5.0 and above compilers, and the system come
Ubuntu 14 Installation Jdk7: Official website Download: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.htmlSelect Accept license and choose the JDK download that suits your model.1. unzip the downloaded JDK file: [email protected]:~$ lsWorkspace public template video picture document download music Desktop[Email protected]:~$ cd Download$ sudo mkdir/usr/lib/jvm$ sudo tar-zxvf jdk-7u55-linux-i586.tar.gz-c/USR/LIB/JVM2. Configure environment variables belowCommand
:OpenJDKSourceBundleldapjdk.x86_64:TheMozillaLDAPJavaSDK
2. Select a version to installWe install the 1.7 version here
1
[[emailprotected]~]#yuminstalljava-1.7.0-openjdk
After the installation is complete, the default installation directory is:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_643. Setting Environment variables
1
[[emailprotected]~]#vi/etc/profile
Add the following content:
123456
#setjavaenvir
Android L recommended using the JDK7 compiler, which is the natural evolution of the law, just like 4 years ago to compile Android 1.6 needs to use JDK5.Multiple versions of the JDK can coexist, and you can switch them at any time using the Update-alternatives tool. The procedures for installing OPENJDK and Oracle JDK (Sun) and switching versions are described below.First, install the OPENJDK7$ sudo apt-get update$ sudo apt-get install OPENJDK-7-JDKLo
/downloading.htmlCompile Reference 3: http://source.android.com/source/building.htmlCompile reference 4: http://source.android.com/source/building-devices.htmlNext we will summarize the download and compilation process of the android source code on ubuntu 10.10. The official documents are detailed. This article focuses on summary and supplement. If you still have any questions, please refer to the official webpage or leave a message.I. Initial Environment Construction1. Install JDKThe command fo
openjdk, the following work is required to set the installed JDK to the default JDK Version. Run the code: [plain] sudo update-alternatives -- install/usr/bin/java/usr/lib/jvm/java-7-sun/bin/java 300 sudo update-alternatives -- install/ usr/bin/javac/usr/lib/jvm/java-7-sun/bin/javac 300 sudo update-alternatives -- install/usr/bin/jar/usr/lib /jvm/java-7-sun/bin/
Install Java 10.04 Java 1.5 on Ubuntu 1.6
11:00:05 | category: Embedded Linux | font size subscription
Installing the JDK
The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK shoshould be used.
Java 6: For gingerbread and newer
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"$ sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partn
the/usr/local/Android directory to prepare for later Android installation. Decompress JDK here. Add the following content to the/etc/profile file:
Export java_home =/usr/local/Android/jdk1.6.0 _ 29Export Path = $ path: $ java_home/bin
Click source/etc/profile. Enter Java-version to check whether Java is installed successfully. Generally, if 1.6.0 _ 29 is displayed, the operation is successful. But the document also says to install javac and jar. I guess the reason may be that, even though Java
Install and configure JDK 7 in Ubuntu 11.04 Step 1: Download jdk-7-linux-i586.tar.gz [plain] wget-c http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz (Note: if the download fails, it is recommended to use thunder download, and then copy to the Linux system .) Step 2: unzip and install [plain] sudo tar zxvf. /jdk-7-linux-i586.tar.gz-C/usr/lib/jvm cd/usr/lib/jvm sudo mv jdk1.7.0/java-7-sun Step 3: Modify the environment variable [plain] vim ~ /. Add bashrc: www.2cto.com [plain]
. modify the file www.2cto.com 1 PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin: /usr/bin:/sbin:/bin:/usr/games: $ {JAVA_HOME}/bin "2JAVA_HOME =/opt/ja Va/jdk1.7.0 _ 073JRE_HOME =$ {JAVA_HOME}/jre4CLASSPATH =.: $ {JAVA_HOME}/lib: $ {JRE_HOME}/lib "3. reload bashrc1 After entering the preceding content, Press esc to exit the editing mode, move the cursor to the end, and enter ': wq! 'To save and exit. 3. Save and execute the following command to make it take effect immediately. 1 source ~ /. Ba
, you can use -- exclude to exclude specific files:
# grep -Ril --exclude=\*.conf bash /etc/*/etc/alternatives/view/etc/alternatives/vim/etc/alternatives/vi/etc/alternatives/vimdiff/etc/alternatives/rvim/etc/alternatives/ex/etc/
direct it to JDK 1.7.0 _ 51. You need to soft link that!
$ ln -s jdk1.7.0_51 currentjohn@ubuntu:Jdk$ lllrwxrwxrwx 1 john john 11 Feb 9 18:29 current -> jdk1.7.0_51/drwxr-xr-x 8 john john 4096 Mar 27 2013 jdk1.6.0_45/drwxr-xr-x 8 john john 4096 Feb 9 18:27 jdk1.7.0_51/
Configure Environment Variables
1. Modify system-level environment variables
$ sudo vim /etc/environment
2. Add the following content and modify it according to your own situation.
JAVA_HOME="/home/john/Develop
Switch gcc, g ++, and gfortran versions in ubuntuStep 1: use which gcc, which g ++, and which gfortran to view the location. My result is/usr/bin/gcc; /usr/bin/g ++ and/usr/bin/gfortran Part 2: first, let's take a look at the gcc commands installed on Ubuntu: ls/usr/bin/gcc *-l; gcc/g ++ in ubuntu 12.04 is 4.6, we downgrade the default system to 4.4 $ sudo apt-get install gcc-4.4 $ sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gcc-4.4 40 (he
Due to developer issues, sun's JVM is difficult to install and configure on Fedora Linux. Here we are talking about Sun's JVM (andJDK) Is the official implementation version, not other reference implementation. Here I will teach you how to easilyFedoraLinux16 install aboveJDK7. The detailed steps are as follows:
1. Download JDK
Download the appropriate version, specifically 32-bit or 64-bit. Skip the table and directly go to the installation step.
Ii. Installation
2.1 Modify permissions
chmo
several services that can provide java. Although Java 6 is installed, the path has not been changed, System We still use the old path, so we will find that the version is incorrect during Android editing.Modify the example (replace alternatives with update-alternatives in Ubuntu ):[Root @ vostro ~] # Alternatives -- config JavaThere are 3 programs which provide
}/JRE3Export classpath =. :$ {java_home}/lib :$ {jre_home}/lib4Export path =$ {java_home}/bin: $ pathNote: Please note that you do not need to enter it urgently after running. You must press the letter I to enter the editing mode before moving the cursor input.After entering the preceding content, Press ESC to exit the editing mode, move the cursor to the end, and enter ': WQ! 'To save and exit.3. Save and execute the following command to make it take effect immediately1Source ~ /. Bashrc4. Conf
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.