Switch the current java environment version in linux
Source: Internet
Author: User
Switch to the current java environment version in linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. Many linux distributions use the gcj open-source jvm implementation by default, instead of sun's jvm. The open-source jvm/jre/jdk has many library implementation methods which are different from those of sun, so that many java programs cannot run well, such as jedit. In this case, you need to manually install sun's java version and switch the system's jvm to the sun version. Sun's jre and jdk are already available in ubuntu official sources, which is very convenient to install. It is also very easy to install jdk In ubuntu.
To switch the java version, run the following command:
Sudo update-alternatives? Config java
In the prompt, select the number before sun and press Enter. Jedit can run normally.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service