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
Since the development of Linux, there have been a lot of available software. In this way, some software functions are basically the same. For example, there are nvi, Vim, emacs, and nano in the editor. What I'm talking about is only part of it. In most cases, software with similar functions is installed in the system at the same time and can be executed using their names. For example, to execute vim, you only need to input Vim in the terminal and press Enter. However, in some cases, we need to u
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
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-
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
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
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
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-
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
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
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
npoi
Edit
Npoi is the. NET version of the POI project. Poi is an open source Java program that reads and writes Microsoft OLE2 component documents such as Excel, Word, and so on.
Chinese name
Npoi
Advantage
Traditional Operations
Excel encounters problems
Constitute
Read and write
OLE2 documentation
Based on
Littleendian bytes Read and write
H
to encapsulate the logic (algorithm) into a class and take a combination (delegate) approach to solve the problem.To implement an abstract interface, inheritance is a way: we declare an abstract interface in a base class and place specific implementations in a specific subclass. A combination (delegate) is another way: we place the implementation of the interface in the combined object, placing the abstract interface in the composition class.3. completed strategy mode by Std:functionthroughstd
specific use of function class templates and bind functions templates, see:http://blog.csdn.net/xiucaijiang/article/details/5999441Http://www.cplusplus.com/reference/functional/bind/?kw=bind5. "Classical Strategy Mode"Traditional strategy practice will make fun into a separate virtual function in the inheritance system, namely:class fun{public: virtualvoid fun (int num) {...} ... Private : ...} class base{public: Base (fun *para):p TR (para) {... } void Fun () {ptr-> fun();}
)) (==\ (namefor (view2)))][\ (namefor (view2))]-|Assuming that there is any merit in this writing, I think there should be at least two points, one is to avoid the pure handwritten string caused by the input error, the second is to change the variable name by refactoring to eliminate the trouble of string substitution ~ at the time of writing because the methods and variables are smart hints, write not look so troublesome ~ In addition to become longer than others are very good ~ How to write a
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.