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
Article 35: Consider alternatives other than the virtual function
Article 35 consider alternatives other than the virtual function
Realizing template method mode by Non-virtual interface technique
Implementing strategy mode with function pointers
Complete strategy mode with Tr1function
The classical strategy model
Summary
Virtual func
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
Personal blog Address: http://www.cnblogs.com/wdfwolf3/Update-alternatives is a command that Ubuntu systems use for software version switching. For example, there are several versions of the JDK in the system that map the directories of these commands to a system directory as a link, then manage them through update-alternatives and set the default startup version. With update-
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
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-
As the saying goes, same. Just as former independent software developers (independent Software VENDOR,ISV) have extended the software portfolio from a single product to an integration suite in an effort to gain a stronger market position, today's software is the service (software-as-a-service, SaaS) Vendors are also leveraging a range of new SaaS platforms to launch the same strategy.
As more and more organizations are willing to adopt SaaS alternatives
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
Illustration: LoadRunner stress test and loadrunner stress test
Software testing is required after the project coding stage ends. As an indispensable part of the software development process, automated testing will gradually replace complicated manual testing. Stress testing is an aspect of software testing's performance evaluation. The following describes some situations when I use
The specific instance teaches you how to perform LoadRunner result analysis, and the instance loadrunner
The most important and difficult part of LoadRunner is the analysis of test results. the remaining recording and pressurization test settings can be easily mastered through several operations. for Results Analysis, I used images and text as an example. I hope
Install JDK 6 first
Sudo apt-Get install sun-java6-jdk
Then you need to set the default JavaProgramSudo Update-alternatives -- config JavaEnter the corresponding options as prompted, and set them to JDK 6.
The following settingsSudo Vim/etc/environment
Add the following two lines:Classpath =/usr/lib/JVM/Java-6-sun/libJava_home =/usr/lib/JVM/Java-6-sunIf classpath and java_home are already set, change them to the above format and press ZZ
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
SPRINGMVC configuration of alternatives custom Dispatherservlet configurationThe three methods we wrote earlier in Spittrwebappinitializer are simply the abstract methods that must be overloaded. However, there are many more ways to overload, allowing for additional configuration.For example, Customizeregistration (). This method is called after Abstractannotationconfigdispatcherservletinitializer will dispatcherservlet the main lane servlet container
As a developer, when developed on Windows, it uses artifacts such as total Commander, search directories, view files, batch rename, and more.TC is a paid version, there is a free alternative version just manager:http://www.justmanager.ru/downloads/Prior to working at Altium, a large number of Ukrainian programmers liked to use far Manager, full of the C/borland C + + in the University of C + + when the sense of vision. Download here: https://farmanager.com/download.php?l=enenjoy!Windows Develope
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.