..Lrwxrwxrwx. 1 root 16 Oct 13 default->/usr/java/latestDrwxr-xr-x. 9 root 4096 Oct 13 jdk1.8.0 _ 20Lrwxrwxrwx. 1 root 21 Oct 13 latest->/usr/java/jdk1.8.0 _ 20
However, it is not actually used so far. We need to use the alternative tool to manage it.
For soft links, if we direct the configuration content to/usr/java/default/bin/xxx and install jdk 1.9 or 2.0 in the future, you just need to directly modify the soft link, instead of having to do it again. therefore, I will use/usr/java/default/a
Recently installed in Ubuntu16.04 python3.5 and the system comes with the python2.7.13, summarize the different versions of the switching problem.
Alias: Aliases
BASHRC: Personal Profile
First, modify the Python version (for users)To modify a Python version for a particular user, simply create one (alias) in its home directory alias . Open the user's ~/.bashrc file and add the new alias information to modify the Python version that is used by default.Alias python= '/usr/bin/pyt
the TAR.GZ package you downloaded by default3. Set the system default JDKJDK8sudo update-java-alternatives-s java-8-oracleIf the JDK7 is installed and the JDK8 is installed, to switch between the two, you can:JDK8 Switch to Jdk7sudo update-java-alternatives-s java-7-oracleJDK7 Switch to Jdk8sudo update-java-alternatives-s java-8-oracle4. Test whether the JDK was
ubuntu 16.04本身是自带python的,他本身是自带2.X和3.X,两个版本,默认的是2.X。这里记录一下如果在版本间切换以及如何把python版本切换到3.X下的方法。1. See the version of Python installed in Ubuntu and the Python version currently in useLs/usr/bin/python*python--version2. Set Update-alternatives to toggle Python versionShow python in place of version informationUpdate-alternatives--list pythonShow after executionUpdate-alternatives:error:no
First install sun1.6, here I install the directory is/usr/java/jdk1.6.0_45
Then set the profile file/etc/profile (add the file at the end of the file)
sudo vim/etc/profile
Export java_home=/usr/java/jdk1.6.0_45
export jre_home=/usr/java/jdk1.6.0_45/jre
export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
export path= $PATH: $JAVA _home/bin
Source/etc/profile
Then install openjdk1.7, you can install it in Software Center, and then execute the following command after installat
Tags: ons file permissions maintenance Ali awt install Oracle ISP download systemDeepin System Manual Installation Oracle Jdk8 detailed tutorialsDownload the JDK archive from Oracle website and extract the files using sudo tar-zxf jdk***, which I placed under the HOME/DIY/JAVA/JDK path.JDK file path:/home/diy/java/jdk/jdk1.8.0_152JDK environment variable ConfigurationModifying a configuration filesudo vi/etc/profileAfter entering, knock on I, then you can edit the content.Add content at the end
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
/index.html
Download Java SE 6 Update 33, A jdk-6u33-linux-i586.bin-format file, about 68 MB.
STEP 2: Install JDK 6
1. Add execution permissions for jdk-6u33-linux-i586.bin
Chmod u + x/usr/lib/jvm/java/jdk-6u33-linux-i586.bin
2. Execute the jdk-6u33-linux-i586.bin and unpack the related files of JDK 6 to the directory of JDK 1.6.0 _ 33.
/Jdk-6u33-linux-i586.bin
3. Copy jdk1.6.0 _ 33 to/usr/lib.
Mkdir-p/usr/lib/jvm/
Cp-r jdk1.6.0 _ 33/usr/lib/jvm/jdk1.6.0 _ 33
4. Install JDK 6
There are many exec
Install jdk1.7 tomcat7 mysql5.6 on CentOS 6.0
1. pre
To facilitate the management of installed software, you need to create a dedicated directoryCd ~ Mkdirdata # diskcddatamkdirsoftware # software installation location mkdirtar_box # tar package storage location
2. setup jdk
Use wget to install jdk. Select jdk 7 as the installation source.
#cd/data/software
#wget--no-cookies--no-check-certificate--header"Cookie:gpw_e24=http%3A%2F%2Fwww.oracle.com%2F;oraclelicense=accept-securebackup-cookie""htt
Jdkhttp: // response
Jdk http://download.Oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz.
I installed jdk in/opt/java, so the following code is executed in the Terminal window:
Sudo mkdir/opt/java
Sudo tarzxvf jdk-7-linux-i586.tar.gz-C/opt/java
1. Open/etc/environment in the editor.
Gedit/etc/environment
2. Modify the file
PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: usr/games: $ {JAVA_HOME}/bin"
JAVA_HOME =/opt/java/jdk1.7.0
JRE_HOME =$ {JAVA_HOME}/jre
Step 1: Download jdk-7-linux-i586.tar.gz
[Plain]
View plaincopy
Http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz wget-c
(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
[Plain]
View plaincopy
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
[Plain]
View plaincopy
Vim ~ /. Bashrc
Add:[Plain]
Much has been said about how ungodly expensive Windows Vista is going to be, but what is it really worth? While software is rarely priced based on what it actually
Does , I figured I 'd take a unique approach toward figuring out the real value of Vista, with a feature-by-feature analysis of how much the upgrades are worth to the user. are there other ways to get the same features? How Much Do alternatives cost? Here's my blow by blow Analysis of Vist
following lines to the file:
Java_home = opt/jdk1.6.0 _ 07Classpath = $ java_home/lib :.Path = $ path: $ java_home/binExport java_home classpath path
Save and exit. Run the following command:
[Root @ localhost etc] source/etc/profile
This allows the configuration to take effect without restarting the computer.
3) change the default JVMNow you need to run the alternatives command to instruct fedora to recognize Sun's JVM.
[Root @ localhost
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.