Use alternatives to convert the java version-general Linux technology-Linux programming and kernel information. The following is a detailed description. After jdk was installed, java and javac were replaced with the java and javac of gij in/usr/bin.
Some people on the Internet said that they could use a tool named alternativs to migrate the software version in linux. They decided to use alternatives to mig
Tian haili @ csdn
Different Android platforms use different JDK versions during compilation. For example, froyo (2.2) and its earlier versions require JDK; gingerbread and later versions require JDK. If you want to build different platform projects in an environment, you need to install different JDK. It takes time and effort to install JDK repeatedly during project switching. Update-alternatives provides a solution for this situation.
This article
Up vote 1 down vote favorite
I typed:sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/ jdk1.8.0/bin/java" 1It ' s says alternatives--install needs link name path priorityCommand-Line Edubuntu
ShareImprove this question
Edited Jul 5 ' + at 17:48 Guntbert4,344
Asked Jul 5 ' + at 16:22 Swapnil18
View the location of the Java commandFind the soft link location for/etc/alternatives/javaIt allows us to see all the optional commands for a command. Execute code:There are two types of alternative: automatic and manual. The initial state of each alternative is automatic, and if the system discovers that the administrator has manually modified a alternative, its status is automatically changed to manualView the current Java versionMy JDK is in this f
Previously, the jdk of ubuntu was installed with the apt-get install command. The default installation is openjdk, and the path is/usr/lib/jvm /. If you need to switch or upgrade the java version, you can use update-alternatives. Of course, you can uninstall and reinstall it, or you can install it by setting environment variables. This section describes how to install update-alternatives.Since the development of Linux, there have been a lot of availab
In the past two days, I wanted to develop the android development environment in Linux, But I encountered a big problem when installing Sun's Java 6.
The source cannot be found.
The final installation method is to download the binfile of Java 6 on the official website, modify the/etc/profile file, and specify the location of Java, so that the Java command is available.
Then you need a command to specify which software the Java command is provided, that is, the default software. The reason for th
Update-alternatives is a tool dedicated to maintaining the system command link in the Ubuntu system, which makes it easy to set which command the system uses by default, which software version, for example, we have both open jdk and Sun JDK Two versions installed in the system. And we want the system to use the sun JDK by default, what should we do? Through the update-alternatives can be very convenient to
http://persevere.iteye.com/blog/1479524Update-alternatives is a tool dedicated to maintaining the system command link in the Ubuntu system, which makes it easy to set which command the system uses by default, which software version, for example, we have both open jdk and Sun JDK Two versions installed in the system. And we want the system to use the sun JDK by default, what should we do? Through the update-alterna
Use the update-alternatives command in Linux, updatealternatives
Personal blog address: http://www.cnblogs.com/wdfwolf3/
Update-alternatives is a command used by the ubuntu system to switch the software version. For example, if there are several jdk versions in the system, map the directories where these commands are located to a unified system directory as links, and then manage them through update-
update-alternatives--Management soft Connect/Word linked (Symbolic links)
Command format
update-alternatives [Options] Command
Detailed description
Update-alternatives can be created, deleted, repaired, soft-connected, and can display information about existing soft links, all of which constitute the Debian alternative system (
This blog post lists 5 tools that can replace putty, some of which do not implement putty. As follows:PuTTy is the most popular SSH clients for windows-based systems. It's very small is size and easy to use. Most of the people in the Linux world prefer to use putty. But they is aware that there is many tools available to provides many features which Putty doesn ' t has. I have used many SSH clients and adding 5 alternatives of PuTTY client below which
Ubuntu update-alternatives (soft connection management), ubuntualternatives
Update-alternatives-manage soft connections/character links (symbolic links)
Command Format
Update-alternatives [options] command
Detailed description
Update-alternatives can be used to create, delete, repair, and soft connections. It c
I. Functional roleUpdate-alternatives is a utility for dpkg that maintains symbolic links to system commands to determine what commands the system uses by default.In the Debian system, we may install a number of similar programs and optional configurations, such as Web browser programs (firefox,konqueror), window managers (Wmaker, metacity), and different themes for the mouse. In this way, users can choose when they are using the system to meet their
Alternatives is a powerful command under Linux. Can only be performed under root permissions. If there are several commands in the system that are very similar, but cannot be deleted at will, then you can use alternatives to specify a global setting.
Alternatives is often used to install multiple versions of the same software in the same system. For example, in
On June 18, MarkShuttleworth met with the chairman of the China OSS Promotion alliance and said: "Ubuntu is not a DOS alternative ". What does this sentence mean? Let's ask, what is Mark's purpose in China this time? The fact is that Mark's visit to China was not designed to visit the OSS alliance, but to negotiate with the Ubuntu OEM (I will not talk about it here. Only in this context can we correctly understand the exact meaning of "Ubuntu does not use DOS
February 15 message: Today, Red Hat officially announced the official launch of Red Hat Enterprise Virtualization 3.0. This product greatly expands its strength in server and desktop virtualization management tools and kernel-based Virtual Machine management programs. According to RedHat, RedHat Enterprise Virtualization 3.0 balances the virtualization management features, performance, and scalability of new enterprises under Linux and Windows loads, and the cost is much lower than that of propr
When more than one Java is installed in a Linux system, we can switch the Java version automatically when the original configuration file is not modified:[Email protected] ~]# update-alternatives--config java650) this.width=650; "title=" 3118.tmp.jpg "style=" height:160px;width:737px "src=" http://s4.51cto.com/wyfs02/M00/ 89/20/wkiom1gicoew4dxbaaau_kx0tym965.jpg "width=" 881 "height=" 156 "alt=" Wkiom1gicoew4dxbaaau_kx0tym965.jpg "/>To maintain the cu
Update-alternatives is a tool dedicated to maintaining the system command link in the Ubuntu system, which makes it easy to set which command the system uses by default, which software version , for example, we install both open jdk and sun in the system JDK two versions, and we want the system to use the sun JDK by default, what to do? Through the update-alternatives can be very convenient to achieve.sudo
Alternatives is a powerful command under Linux. Can only be performed under root authority. If there are several command functions in the system that are very similar, but can not be arbitrarily deleted, then use alternatives to specify a global setting.Alternatives is commonly used to install multiple versions of the same software on the same system. For example, in order to develop the need, I need to ins
Last week when installing the search engine Elasticsearch, asked to install a newer version of Java, I chose Java 1.8.0, the installation of Java after the successful use of java-version found that the version is still 1.6.0,Some information was queried to find that the version of the selected software could be replaced with the Linux Alternatives command.DescriptionAlternatives--install whichInstall indicates installationLink is a symbolic linkName i
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.