How to solve the problem of cant find libjava.so under Ubuntu?

  
                

Recently, some users reported that after installing Ubuntu system, java was found to be unusable. No matter how to set up the installation directory of debugging jdk, Java could not be used correctly. How is this going? How to solve the problem of can‘t find libjava.so under Ubuntu system? Proposed

in /etc /profile or ~ /.bashrc under set JAVA_HOME and PATH can not prompt the above error message

1. Problem:

Error : could not find libjava.so

Error: Could not find Java SE Runtime Environment.

2. Try to solve

After trying a myriad of methods, still suggest the same Error message, then judge the problem with the idea.

3.Resolve the problem

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>TM 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. summarized < Br>

Directly use the commands provided by the system to install java, eliminating the need for complex configuration.

The above is the way to solve the problem of can‘t find libjava.so under Ubuntu. Through the above introduction, you should know how to solve this problem.

Copyright © Windows knowledge All Rights Reserved