Hot search terms: 360 Security Guard Office365 360 browser WPS Office iQiyi Huawei Cloud Market Tencent Cloud Store
The following is how to solve the can’t find libjava.so error problem in Ubuntu. Through the above introduction, everyone should know how to solve this problem when encountering it again.
1. Raising the question
Setting JAVA_HOME and PATH under /etc/profile or ~/.bashrc fails to prompt the above error message:
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
2. Try to solve
After trying countless methods, the same error message is still prompted, and then it is judged that there is something wrong with this idea.
3. Problem solving
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo update-java-alternatives -s java-8-oracle
4.java check
》》》java-version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
5.Set java environment variables
sudo apt-get install oracle-java8-set-default
6. Summary
Directly use the commands provided by the system to install java, eliminating all kinds of complicated configuration content.
How to deduct pictures in flash? -Method of flash image deduction
How to export gif animation from flash? -How to export gif animations from flash
How to rotate graphics in flash? -How to rotate graphics in flash
How to return to the previous step in flash? -flash returns to the previous step
How to view hidden files in winrar? -How to view hidden files in winrar
What to do if there is no sound after reinstalling the computer system - Driver Wizard Tutorial
How to practice typing with Kingsoft Typing Guide - How to practice typing with Kingsoft Typing Guide
How to upgrade the bootcamp driver? How to upgrade the bootcamp driver
How to change QQ music skin? -QQ music skin change method
Driver President Download-How to solve the problem when downloading driver software is very slow