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
cachebusting:true,//CSS sourcemaps off by default because relative paths are "buggy"/ /with this option, according to the Css-loader README//(Https://github.com/webpack/css-loader#sourcemaps)//In
Our experience, they generally work as expected,//Just is aware to this issue when enabling this option. Csssourcemap:false,}, Build: {//Template for index.html index:path.resolve (__dirname, '.. /dist/index.html '),//Paths assetsRoot:path.resolve (__dirname, ' ... /dist '), assetssubdirectory: '
at the end of the open file?
12345
# export Java env export java_home= /usr/local/java/jdk1 .7.0 export jre_home= /usr/local/java/jdk1 .7.0 /jre export classpath=.:%java_home% /lib/dt .jar:%java_home% /lib/tools .jar export path= $JAVA _home /bin : $JRE _home /bin : $PATH
Save the exit and enter the following command to make it effective?
1
source~/.bash_profile
4. Configure the default JDK (this step can be omitted
Finally, you can upgrade your system by implementing C ++ 11 GCC4.8.1. The following steps can be performed to install GCC4.8.1, sudoadd-apt-repositoryppa: ubuntu-toolchain-r/testsudoupdate-alternatives -- remove-allgccsudoupdate-alternatives -- remove
Finally, the complete implementation of C ++ 11 GCC 4.8.1.
Upgrade your system.
The following steps can be performed to install GCC 4.8.1 in Ubuntu 13.04,
Su
downloaded cannot be installed.
Original
Go to the directory where you downloadedthe JRE package, and change the permissions so the file is executable. Forexample:
$ CD/tmp
$ Chmod A + x jre-6u25-linux-x64-rpm.bin
Translation
Go to the JRE directory you downloaded and change the directory permissions so that they can be authorized to other users.
$ CD/tmp
$ Chmod A + x jre-6u25-linux-x64-rpm.bin
Original
Extract and run the RPM file. For example:
$ Sudo./jre-6u25-linux-x64-rpm.bin
The RPM IN
openjdk. To set the JDK we installed as the default JDK version, perform the following work.Run the Code:[Plain] View plaincopy
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/
I encountered this error. I saw the solution in a Foreign Forum and successfully solved the problem. I hope to help others.
Error:Build/CORE/product_config.mk: 229: Warning: adding test OTA keyHost Java: clearsilver (Out/host/common/obj/java_libraries/Clearsilver_intermediates/classes)Unrecognized option: 9999999Make: *** [out/host/common/obj/java_libraries/Clearsilver_intermediates/javalib. jar] Error 41
Cause:According to the error message, it is probably a Java Virtual Machine problem. Some p
Build the ubuntu eclipse C ++ EnvironmentInstall the java Development Environment package JDK
Step 1: Download jdk-7-linux-i586.tar.gz
wget -c http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz
(Note: If the download fails, we recommend that you use thunder to download it and copy it to the Linux system .)Step 2: unzip and install
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 Environment Variables
vim
this case, you must use the "Update-alternatives" tool provided by Debian to complete the process.
Program Multiple versions are available:
Sudo Update-alternatives -- display Java
The system only lists gij JVM, because JDK 6 is manually decompressed and installed.
Enter the following two lines:
Sudo Update-alternatives -- install/usr/bin/Java/usr/local/lib/jdk
-headless* openjdk-6-jre-headless* gcj-4.5-jre-headless* openjdk-7-jre-headlessTry: sudo apt-get install
First, we need to check whether there are already some java alternatives installed on the system. To do that we can useUpdate-AlternativesCommand:
$ sudo update-alternatives --list javaupdate-alternatives: error: no alter
that this version number of Ubuntu comes with a jdk.) It's just that. I did it myself once, because the path I didn't know where I came from., or you can put it on your own again)3. Enter the directory under--CD/USR/LIB/JVM;4. Unpack this package-----sudo tar-zxvf jdk-7u45-linux-i586.tar.gz do not write another path, is to extract directly to the current folder。 Suppose you want to unzip to another folder and add it later (assuming you need permission to unzip it). Enter sudo-s and enter your l
(where bytecode files are stored) can have multiple, middle use: separate spacesPATH = Execution file location of the compilation run (Java Javac, etc.)Jre_home = location of the core jar packageE:1 export java_home=/usr/lib/jvm/2 export jre_home=${java_home}/3 Export classpath=.:${java_home}/lib:${jre_home}/4 export path=${java_home}/bin: $PATHView CodeExecute the source ~/.BASHRC to complete the modification4. Configure the default JDK versionFor multiple versions, or JDK versions installed b
First step: Download jdk-7u79-linux-x64.tar.gz
Wget-c http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz
(Note: If the download is not down, it is recommended to use Thunderbolt download, and then copied to the Linux system.) )Step Two: Unzip the installation
sudo tar zxvf jdk-7u79-linux-x64.tar.gz
Cd/usr/lib/jvm
Step Three: Modify environment variables
Vim ~/.BASHRC
Add to:
Export java_home=/usr/lib/jvm/jdk1.7.0_79
-linux-x64.tar.gz -c/usr/local/java
cd/usr/local/java
sudo mv jdk1.7.0_80 jdk1.7.0
3. Configure Environment Variables
VI ~/.bash_profile
Add at the end of an open file
# Export Java env
export java_home=/usr/local/java/jdk1.7.0
export JRE_HOME=/USR/LOCAL/JAVA/JDK1.7.0/JRE
Export Classpath=.:%java_home%/lib/dt.jar:%java_home%/lib/tools.jar
export path= $JAVA _home/bin: $JRE _ Home/bin: $PATH
Save the exit and enter the following command to make it effective
SOURCE ~/.bash_profile
4. Confi
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-
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.