If you are looking for software to use, go to Huajun Software Park! software release

How to solve the can\'t find libjava.so error problem under Ubuntu?

Author: Xiaoyuer Date: 2017-05-23

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

can under Ubuntu't find libjava.so错误问题如何解决?

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

can under Ubuntu't find libjava.so错误问题如何解决?

6. Summary

Directly use the commands provided by the system to install java, eliminating all kinds of complicated configuration content.

  

Related articles